Commit 74395d75 authored by dearblue's avatar dearblue

Suppress warnings for `strncat()`

`strncat()` also needs `'\0'`.
parent 83dab1ee
......@@ -5020,10 +5020,10 @@ parser_yylex(parser_state *p)
}
if (c2) {
char buf[256];
char cc = (char)c2;
char cc[] = { (char)c2, '\0' };
strcpy(buf, "invalid character syntax; use ?\\");
strncat(buf, &cc, 1);
strncat(buf, cc, 2);
yyerror(p, buf);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment