[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: [PATCH] Fix the format warning when building applets/usage_pod.c
From: Dinny Wu <dinny.wu () gmail ! com>
Date: 2012-07-26 14:12:51
Message-ID: 1343311971-23290-1-git-send-email-dinny.wu () gmail ! com
[Download RAW message or body]
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 0b1c4aa..a67e8b4 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");
--
1.7.9.2
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic