aboutsummaryrefslogtreecommitdiff
path: root/strings.c
diff options
context:
space:
mode:
Diffstat (limited to 'strings.c')
-rw-r--r--strings.c2
1 files changed, 1 insertions, 1 deletions
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])