diff options
author | Wojtek Kosior <kwojtus@protonmail.com> | 2019-12-30 20:16:44 +0100 |
---|---|---|
committer | Wojtek Kosior <kwojtus@protonmail.com> | 2019-12-30 20:16:44 +0100 |
commit | 142439f7240bf796dba4ed4e570c6df0a33997b1 (patch) | |
tree | a281c47ee3bd61f8ff36a2dc68628bd920bdd42d | |
parent | 7745bb422f98730d6b555e4ab135ba6ca7479d7a (diff) | |
download | rpi-MMU-example-142439f7240bf796dba4ed4e570c6df0a33997b1.tar.gz rpi-MMU-example-142439f7240bf796dba4ed4e570c6df0a33997b1.zip |
uint32_to_hexstring() bugfix
-rw-r--r-- | strings.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]) |