aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojtek Kosior <kwojtus@protonmail.com>2019-12-30 20:16:44 +0100
committerWojtek Kosior <kwojtus@protonmail.com>2019-12-30 20:16:44 +0100
commit142439f7240bf796dba4ed4e570c6df0a33997b1 (patch)
treea281c47ee3bd61f8ff36a2dc68628bd920bdd42d
parent7745bb422f98730d6b555e4ab135ba6ca7479d7a (diff)
downloadrpi-MMU-example-142439f7240bf796dba4ed4e570c6df0a33997b1.tar.gz
rpi-MMU-example-142439f7240bf796dba4ed4e570c6df0a33997b1.zip
uint32_to_hexstring() bugfix
-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])