output: fix long logline test

Fixes: 023a2fe9ab ("unittests: fix format-truncation warning")
pull/14025/head
Victor Julien 1 month ago committed by Victor Julien
parent fcbccb0292
commit b7650a45fa

@ -1791,6 +1791,7 @@ static int SCLogTestInit05(void)
{ {
char str[4096]; char str[4096];
memset(str, 'A', sizeof(str)); memset(str, 'A', sizeof(str));
str[sizeof(str) - 1] = '\0';
SCLogInfo("%s", str); SCLogInfo("%s", str);
PASS; PASS;

Loading…
Cancel
Save