diff options
Diffstat (limited to '')
-rw-r--r-- | libkeccak_behex_lower.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libkeccak_behex_lower.c b/libkeccak_behex_lower.c index 77e48c1..5098ecf 100644 --- a/libkeccak_behex_lower.c +++ b/libkeccak_behex_lower.c @@ -13,6 +13,7 @@ void libkeccak_behex_lower(char *restrict output, const void *restrict hashsum_, size_t n) { const unsigned char *restrict hashsum = hashsum_; + output[2 * n] = '\0'; while (n--) { output[2 * n + 0] = "0123456789abcdef"[(hashsum[n] >> 4) & 15]; |