5ae627d4a1e8c3fc75b22622f910b87f5f8f07eb
[openwrt/openwrt.git] / package / utils / xfsprogs / patches / 160-format-security.patch
1 From: Ben Myers <bpm@sgi.com>
2 Date: Fri, 1 Feb 2013 21:50:22 +0000 (-0600)
3 Subject: xfsprogs: fix warning in libxcmd/input.c
4 X-Git-Tag: v3.1.11~25
5 X-Git-Url: http://oss.sgi.com/cgi-bin/gitweb.cgi?p=xfs%2Fcmds%2Fxfsprogs.git;a=commitdiff_plain;h=50a3aa8977821ad072f3aa5b63645827f9b8ca1d
6
7 xfsprogs: fix warning in libxcmd/input.c
8
9 Fix an error when building with -Werror=format-security.
10
11 input.c: In function 'fetchline':
12 input.c:91:2: error: format not a string literal and no format arguments [-Werror=format-security]
13
14 Signed-off-by: Ben Myers <bpm@sgi.com>
15 Reported by: Arkadiusz Miƛkiewicz <arekm@maven.pl>
16 Reviewed-by: Mark Tinguely <tinguely@sgi.com>
17 ---
18
19 --- a/libxcmd/input.c
20 +++ b/libxcmd/input.c
21 @@ -88,7 +88,7 @@ fetchline(void)
22
23 if (!line)
24 return NULL;
25 - printf(get_prompt());
26 + printf("%s", get_prompt());
27 fflush(stdout);
28 if (!fgets(line, MAXREADLINESZ, stdin)) {
29 free(line);