summaryrefslogtreecommitdiff
path: root/fticks.c
diff options
context:
space:
mode:
Diffstat (limited to 'fticks.c')
-rw-r--r--fticks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fticks.c b/fticks.c
index 724a589..ce4888e 100644
--- a/fticks.c
+++ b/fticks.c
@@ -21,7 +21,7 @@ format_hash(const uint8_t *hash, size_t out_len, uint8_t *out)
{
int i;
- for (i = 0; i < out_len / 2; i++)
+ for (i = 0; i < out_len / 2 - 1; i++)
sprintf((char *) out + i*2, "%02x", hash[i % SHA256_DIGEST_SIZE]);
}