wiimms-iso-tools icon indicating copy to clipboard operation
wiimms-iso-tools copied to clipboard

always use "%s"-style format for printf()-style functions

Open trofi opened this issue 2 years ago • 0 comments

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:

src/lib-std.c:3623:32: error: format not a string literal and no format arguments [-Werror=format-security]
 3623 |             ERROR0(ERR_WARNING,errmsg);
      |                                ^~~~~~

Let's wrap all the missing places with "%s" format.

trofi avatar Nov 19 '21 09:11 trofi