From 5cee9b9c6394cffee6f31fab00323d9e559f0702 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 11 Feb 2019 17:56:37 +0100 Subject: General improvements MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libkeccak_behex_upper.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libkeccak_behex_upper.c') 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]; -- cgit v1.2.3-70-g09d2