File: 0001-Fix-string-format-errors-with-recent-ncurses.patch

package info (click to toggle)
hexcurse 1.60.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 904 kB
  • sloc: sh: 4,206; ansic: 2,191; makefile: 10
file content (29 lines) | stat: -rw-r--r-- 841 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From 9dec70d033da420ffe77251fc662d9703bf4389e Mon Sep 17 00:00:00 2001
From: Sven Joachim <svenjoac@gmx.de>
Date: Wed, 13 Oct 2021 17:46:54 +0200
Subject: [PATCH] Fix string format errors with recent ncurses

---
 src/screen.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/src/screen.c
+++ b/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);