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:
parent
89c54741a5
commit
c6a6b1ed2b
@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Console hexeditor"
|
|||||||
TERMUX_PKG_LICENSE="GPL-2.0"
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
||||||
TERMUX_PKG_MAINTAINER="@termux"
|
TERMUX_PKG_MAINTAINER="@termux"
|
||||||
TERMUX_PKG_VERSION=1.60.0
|
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_SRCURL=https://github.com/LonnyGomes/hexcurse/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
||||||
TERMUX_PKG_SHA256=f6919e4a824ee354f003f0c42e4c4cef98a93aa7e3aa449caedd13f9a2db5530
|
TERMUX_PKG_SHA256=f6919e4a824ee354f003f0c42e4c4cef98a93aa7e3aa449caedd13f9a2db5530
|
||||||
TERMUX_PKG_AUTO_UPDATE=true
|
TERMUX_PKG_AUTO_UPDATE=true
|
||||||
|
20
packages/hexcurse/src-screen.c.patch
Normal file
20
packages/hexcurse/src-screen.c.patch
Normal 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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user