From 142439f7240bf796dba4ed4e570c6df0a33997b1 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Mon, 30 Dec 2019 20:16:44 +0100 Subject: uint32_to_hexstring() bugfix --- strings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strings.c b/strings.c index 55aff97..34c269a 100644 --- a/strings.c +++ b/strings.c @@ -35,7 +35,7 @@ void uint32_to_decstring(uint32_t number, char buf[11]) void uint32_to_hexstring(uint32_t number, char buf[9]) { uint32_to_hex(number, buf); - buf[9] = '\0'; + buf[8] = '\0'; } void uint32_to_binstring(uint32_t number, char buf[33]) -- cgit v1.2.3