`ncuses-6.3` added printf-style function attributes and now makes
it easier to catch cases when user input is used in palce of format
string when built with CFLAGS=-Werror=format-security:
ttyclock.c:270:71: error: format not a string literal and no format arguments [-Werror=format-security]
270 | mvwprintw(ttyclock.datewin, (DATEWINH / 2), 1, ttyclock.date.datestr);
| ~~~~~~~~~~~~~^~~~~~~~
Let's wrap all the missing places with "%s" format.
master
parent
9e00c32098
commit
4cfd73080d
1 changed files with 1 additions and 1 deletions
Loading…
Reference in new issue