From 50a3aa8977821ad072f3aa5b63645827f9b8ca1d Mon Sep 17 00:00:00 2001 From: Ben Myers Date: Fri, 1 Feb 2013 15:50:22 -0600 Subject: [PATCH] xfsprogs: fix warning in libxcmd/input.c MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Reported by: Arkadiusz Miśkiewicz Reviewed-by: Mark Tinguely --- libxcmd/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libxcmd/input.c b/libxcmd/input.c index d7f29c159..b0c132685 100644 --- a/libxcmd/input.c +++ b/libxcmd/input.c @@ -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); -- 2.47.2