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
5 X-Git-Url: http://oss.sgi.com/cgi-bin/gitweb.cgi?p=xfs%2Fcmds%2Fxfsprogs.git;a=commitdiff_plain;h=50a3aa8977821ad072f3aa5b63645827f9b8ca1d
7 xfsprogs: fix warning in libxcmd/input.c
9 Fix an error when building with -Werror=format-security.
11 input.c: In function 'fetchline':
12 input.c:91:2: error: format not a string literal and no format arguments [-Werror=format-security]
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>
21 @@ -88,7 +88,7 @@ fetchline(void)
25 - printf(get_prompt());
26 + printf("%s", get_prompt());
28 if (!fgets(line, MAXREADLINESZ, stdin)) {