1From e5e54be286bf6d8336b747503c803750bc674c57 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 30 Oct 2021 01:28:18 -0700
4Subject: [PATCH] Fix a few -Werror=format-security errors with mvprintw()
5
6In all these places a non-constant is used as a format string which
7compiler complains about. Fix by using "%s" as format.
8
9Upstream-Status: Pending
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 src/cdda-player.c | 6 +++---
13 1 file changed, 3 insertions(+), 3 deletions(-)
14
15diff --git a/src/cdda-player.c b/src/cdda-player.c
16index 69eddee..8834d60 100644
17--- a/src/cdda-player.c
18+++ b/src/cdda-player.c
19@@ -298,7 +298,7 @@ action(const char *psz_action)
20              psz_action);
21   else
22     snprintf(psz_action_line, sizeof(psz_action_line), "%s", "" );
23-  mvprintw(LINE_ACTION, 0, psz_action_line);
24+  mvprintw(LINE_ACTION, 0, "%s", psz_action_line);
25   clrtoeol();
26   refresh();
27 }
28@@ -1029,10 +1029,10 @@ display_tracks(void)
29       }
30       if (sub.track == i) {
31         attron(A_STANDOUT);
32-        mvprintw(i_line++, 0, line);
33+        mvprintw(i_line++, 0, "%s", line);
34         attroff(A_STANDOUT);
35       } else
36-        mvprintw(i_line++, 0, line);
37+        mvprintw(i_line++, 0, "%s", line);
38       clrtoeol();
39     }
40   }
41