xfsprogs: fix warning in libxcmd/input.c
Ben Myers
bpm at sgi.com
Fri Feb 1 15:36:49 CST 2013
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 at sgi.com>
Reported by: Arkadiusz Miśkiewicz <arekm at maven.pl>
Index: xfsprogs/libxcmd/input.c
===================================================================
--- xfsprogs.orig/libxcmd/input.c 2013-02-01 15:29:47.069894522 -0600
+++ xfsprogs/libxcmd/input.c 2013-02-01 15:30:00.845895188 -0600
@@ -88,7 +88,7 @@
if (!line)
return NULL;
- printf(get_prompt());
+ printf("%s", get_prompt());
fflush(stdout);
if (!fgets(line, MAXREADLINESZ, stdin)) {
free(line);
More information about the xfs
mailing list