]> git.ipfire.org Git - thirdparty/mtr.git/commit
ui/curses: always use "%s"-style format for printf()-style functions 411/head
authorSergei Trofimovich <slyich@gmail.com>
Mon, 1 Nov 2021 07:36:06 +0000 (07:36 +0000)
committerSergei Trofimovich <slyich@gmail.com>
Mon, 1 Nov 2021 07:36:06 +0000 (07:36 +0000)
commitaeb493e08eabcb4e6178bda0bb84e9cd01c9f213
tree1148b3661daf2097a3671761def787cf35d06040
parentec42ba61f77654e8397e6496095634585f90b26d
ui/curses: always use "%s"-style format for printf()-style functions

`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:

  ui/curses.c:765:42:
    error: format not a string literal and no format arguments [-Werror=format-security]
    765 |         mvprintw(rowstat - 1, startstat, msg);
        |                                          ^~~

Let's wrap all the missing places with "%s" format.
ui/curses.c