File: fix-format-security-error.patch

package info (click to toggle)
petris 1.0.1-11.1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 244 kB
  • sloc: ansic: 1,920; sh: 34; makefile: 29
file content (16 lines) | stat: -rw-r--r-- 514 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Fix compilation error [-Werror=format-security]
 Add formt argument to mvprintw() call to avoid error during compilation.
Author: Andree Leidenfrost <andree@debian.org>
Index: petris-1.0.1/main.c
===================================================================
--- a/main.c
+++ b/main.c
@@ -272,7 +272,7 @@ int show_score(POINTS points, int use_hs
 void message(char *msg)
 {
 	attrset(COLOR_PAIR(COLOR_MSG) | A_BLINK);
-	mvprintw(0,0, msg);
+	mvprintw(0,0, "%s", msg);
 	refresh();
 	sleep(3);
 }