diff --git a/src/util-debug.c b/src/util-debug.c index 3bd3a3bed4..c0e61f6ba7 100644 --- a/src/util-debug.c +++ b/src/util-debug.c @@ -1791,6 +1791,7 @@ static int SCLogTestInit05(void) { char str[4096]; memset(str, 'A', sizeof(str)); + str[sizeof(str) - 1] = '\0'; SCLogInfo("%s", str); PASS;