diff options
author | Hauke Mehrtens <hauke@openwrt.org> | 2015-11-22 14:13:47 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@openwrt.org> | 2015-11-22 14:13:47 +0000 |
commit | dcada87c5fbaefe66fcc5e1ae0e31f23d1abca22 (patch) | |
tree | 4c4c4917c971b116e323a8de91ce3e4b3fcb5fcf /package/utils/xfsprogs/patches/160-format-security.patch | |
parent | e8db47db7b6562db7d05ee83dd421752a2d2ce57 (diff) | |
download | master-187ad058-dcada87c5fbaefe66fcc5e1ae0e31f23d1abca22.tar.gz master-187ad058-dcada87c5fbaefe66fcc5e1ae0e31f23d1abca22.tar.bz2 master-187ad058-dcada87c5fbaefe66fcc5e1ae0e31f23d1abca22.zip |
xfsprogs: activate format-security checks
This patch was taken from upstream.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47581 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/utils/xfsprogs/patches/160-format-security.patch')
-rw-r--r-- | package/utils/xfsprogs/patches/160-format-security.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/package/utils/xfsprogs/patches/160-format-security.patch b/package/utils/xfsprogs/patches/160-format-security.patch new file mode 100644 index 0000000000..5ae627d4a1 --- /dev/null +++ b/package/utils/xfsprogs/patches/160-format-security.patch @@ -0,0 +1,29 @@ +From: Ben Myers <bpm@sgi.com> +Date: Fri, 1 Feb 2013 21:50:22 +0000 (-0600) +Subject: xfsprogs: fix warning in libxcmd/input.c +X-Git-Tag: v3.1.11~25 +X-Git-Url: http://oss.sgi.com/cgi-bin/gitweb.cgi?p=xfs%2Fcmds%2Fxfsprogs.git;a=commitdiff_plain;h=50a3aa8977821ad072f3aa5b63645827f9b8ca1d + +xfsprogs: fix warning in libxcmd/input.c + +Fix an error when building with -Werror=format-security. + +input.c: In function 'fetchline': +input.c:91:2: error: format not a string literal and no format arguments [-Werror=format-security] + +Signed-off-by: Ben Myers <bpm@sgi.com> +Reported by: Arkadiusz MiĆkiewicz <arekm@maven.pl> +Reviewed-by: Mark Tinguely <tinguely@sgi.com> +--- + +--- a/libxcmd/input.c ++++ b/libxcmd/input.c +@@ -88,7 +88,7 @@ fetchline(void) + + if (!line) + return NULL; +- printf(get_prompt()); ++ printf("%s", get_prompt()); + fflush(stdout); + if (!fgets(line, MAXREADLINESZ, stdin)) { + free(line); |