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]
Reported by: Arkadiusz Miśkiewicz <[email protected]>
Index: xfsprogs/libxcmd/input.c
===================================================================
libxcmd/input.c +1 -1
@@ -88,7 +88,7 @@if (!line)return NULL ; -printf (get_prompt ()); +printf ("%s" ,get_prompt ());fflush (stdout);if (!fgets (line,MAXREADLINESZ , stdin)) {free (line);
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Mark Tinguely
Reviewed-byQuoted 21 lines · Ben Myers
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<[email protected]>Reported by: Arkadiusz Miśkiewicz<[email protected]>
Index:xfsprogs/libxcmd/input.c
===================================================================libxcmd/input.c +1
-1@@ -88,7 +88,7 @@if (!line)return NULL ; -printf (get_prompt ()); +printf ("%s" ,get_prompt ());fflush (stdout);if (!fgets (line,MAXREADLINESZ , stdin)) {free (line);
Quoted 4 lines
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Looks good.
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs