Unverified Commit 3fbd5f00 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #4639 from dearblue/suppress-Wstringop-truncation

Suppress warnings for `strncat()`
parents f263088b 74395d75
......@@ -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