c6a6b1ed2b
Fails with: /home/builder/.termux-build/hexcurse/src/src/screen.c:495:27: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] mvwprintw(tmpwin,2,3, msg); ^~~
21 lines
561 B
Diff
21 lines
561 B
Diff
--- ../screen.c.orig 2022-02-04 21:18:58.796769500 +0000
|
|
+++ ./src/screen.c 2022-02-04 21:21:13.233194482 +0000
|
|
@@ -451,7 +451,7 @@
|
|
|
|
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 @@
|
|
|
|
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);
|
|
|