diff options
Diffstat (limited to 'libkeccak_behex_upper.c')
-rw-r--r-- | libkeccak_behex_upper.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libkeccak_behex_upper.c b/libkeccak_behex_upper.c index 73a67a1..b581f58 100644 --- a/libkeccak_behex_upper.c +++ b/libkeccak_behex_upper.c @@ -13,6 +13,7 @@ void libkeccak_behex_upper(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]; |