summaryrefslogtreecommitdiff
path: root/src/log.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2018-06-09 14:42:57 +0200
committerChristian Pointner <equinox@spreadspace.org>2018-06-09 14:42:57 +0200
commitdf49628b15cd254bf734858bfd889e554596f1ef (patch)
treefafb960ef7dbf09140839d789280ed00725066b6 /src/log.c
parentmake build reproducible (diff)
fix off-by-one errorHEADmaster
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/log.c b/src/log.c
index 13b861b..074c584 100644
--- a/src/log.c
+++ b/src/log.c
@@ -244,7 +244,7 @@ void log_print_hex_dump(log_prio_t prio, const uint8_t* buf, uint32_t len)
for(i=0; i < len; i++) {
if(((i+1)*3) >= (MSG_LENGTH_MAX - offset))
break;
- snprintf(ptr, 3, "%02X ", buf[i]);
+ snprintf(ptr, 4, "%02X ", buf[i]);
ptr+=3;
}
}