summarylogtreecommitdiffstats
path: root/ncurses.patch
blob: eb7b09e137537f1d31ffc7eba351732d83cc99f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git src/screen.c src/screen.c
index 2cef657..f45fa8b 100644
--- src/screen.c
+++ src/screen.c
@@ -451,7 +451,7 @@ void popupWin(char *msg, int time)
 
     keypad(tmpwin, TRUE);
 
-    mvwprintw(tmpwin,2,3, msg);				/* output mesg        */
+    mvwprintw(tmpwin, 2, 3, "%s", msg);				/* output mesg        */
     wmove(tmpwin,2,len+4);
     wrefresh(tmpwin);
 
@@ -492,7 +492,7 @@ short int questionWin(char *msg)
 
     tmpwin = drawbox(y, x, 5, len + 6);			/* create window      */
 
-    mvwprintw(tmpwin,2,3, msg);
+    mvwprintw(tmpwin, 2, 3, "%s", msg);
     wmove(tmpwin,2,len+4);
     wrefresh(tmpwin);