Skip to content

Commit

Permalink
Fix format string type issue report by CodeQL.
Browse files Browse the repository at this point in the history
  • Loading branch information
SirWumpus committed Sep 9, 2024
1 parent d9bd1df commit 34352f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/post4.c
Original file line number Diff line number Diff line change
Expand Up @@ -2577,7 +2577,7 @@ _seext: word = P4_POP(ctx->ds).xt;
(void) printf("S\\\" ");
for (char *s = (char *)&w.p[2];*s != '\0'; s++) {
if ((x.n = (P4_Int) p4LiteralEscape(*s))) {
(void) printf("\\%c", x.n);
(void) printf("\\%c", (int) x.n);
continue;
}
(void) fputc(*s, stdout);
Expand Down

0 comments on commit 34352f1

Please sign in to comment.