hexcurse: fix compilation error

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);
                          ^~~
This commit is contained in:
Henrik Grimler 2022-02-05 09:26:59 +01:00
parent 89c54741a5
commit c6a6b1ed2b
No known key found for this signature in database
GPG Key ID: B0076E490B71616B
2 changed files with 21 additions and 1 deletions

View File

@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Console hexeditor"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.60.0
TERMUX_PKG_REVISION=3
TERMUX_PKG_REVISION=4
TERMUX_PKG_SRCURL=https://github.com/LonnyGomes/hexcurse/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=f6919e4a824ee354f003f0c42e4c4cef98a93aa7e3aa449caedd13f9a2db5530
TERMUX_PKG_AUTO_UPDATE=true

View File

@ -0,0 +1,20 @@
--- ../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);