This patch was taken from upstream. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 47581
		
			
				
	
	
		
			30 lines
		
	
	
		
			903 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			903 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
From: Ben Myers <bpm@sgi.com>
 | 
						|
Date: Fri, 1 Feb 2013 21:50:22 +0000 (-0600)
 | 
						|
Subject: xfsprogs: fix warning in libxcmd/input.c
 | 
						|
X-Git-Tag: v3.1.11~25
 | 
						|
X-Git-Url: http://oss.sgi.com/cgi-bin/gitweb.cgi?p=xfs%2Fcmds%2Fxfsprogs.git;a=commitdiff_plain;h=50a3aa8977821ad072f3aa5b63645827f9b8ca1d
 | 
						|
 | 
						|
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]
 | 
						|
 | 
						|
Signed-off-by: Ben Myers <bpm@sgi.com>
 | 
						|
Reported by: Arkadiusz Miśkiewicz <arekm@maven.pl>
 | 
						|
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
 | 
						|
---
 | 
						|
 | 
						|
--- 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);
 |