]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfsprogs: fix warning in libxcmd/input.c
authorBen Myers <bpm@sgi.com>
Fri, 1 Feb 2013 21:50:22 +0000 (15:50 -0600)
committerBen Myers <bpm@sgi.com>
Fri, 1 Feb 2013 21:50:38 +0000 (15:50 -0600)
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>
libxcmd/input.c

index d7f29c1596c942408b8a17531bb8a4003b30ba63..b0c13268547b223a0763eee5ca2f004240617952 100644 (file)
@@ -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);