On ncurses-6.3 with extra printf() annotations gcc now detects use of user input in place of format strings: toxic/src/game_chess.c:1633:63: error: format not a string literal and no format arguments [-Werror=format-security] 1633 | mvwprintw(win, board->y_bottom_bound + 2, x_mid, state->status_message); | ~~~~~^~~~~~~~~~~~~~~~main
parent
7fe522a7b6
commit
fa34b0f03a
Loading…
Reference in new issue