summaryrefslogtreecommitdiffstats
path: root/patches/busybox-1.24.2/0201-Fix-the-format-warning-when-building-applets-usage_p.patch
blob: 98ad36e1d1b3ae2b4ee723a983c6db23339f0a61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From: Dinny Wu <dinny.wu@gmail.com>
Date: Thu, 26 Jul 2012 14:12:51 +0000
Subject: [PATCH] Fix the format warning when building applets/usage_pod.c
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

When compiling busybox with gcc 4.6.3, it shows below warning:

applets/usage_pod.c: In function ‘main’:
applets/usage_pod.c:74:3: warning: format not a string literal and no format arguments [-Wformat-security]

Signed-off-by: Dinny Wu <dinny.wu@gmail.com>
---
 applets/usage_pod.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/applets/usage_pod.c b/applets/usage_pod.c
index 0b1c4aadb8c4..a67e8b4ac348 100644
--- a/applets/usage_pod.c
+++ b/applets/usage_pod.c
@@ -71,7 +71,7 @@ int main(void)
 		} else {
 			printf(", ");
 		}
-		printf(usage_array[i].aname);
+		printf("%s", usage_array[i].aname);
 		col += len2;
 	}
 	printf("\n\n");