[OpenWrt-Devel] [RFC 2/3] PKG_CHECK_FORMAT_SECURITY: fix rbcfg

Etienne CHAMPETIER etienne.champetier at free.fr
Mon Jun 23 17:39:22 EDT 2014


Signed-off-by: Etienne CHAMPETIER <etienne.champetier at free.fr>
---
 package/boot/rbcfg/src/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/package/boot/rbcfg/src/main.c b/package/boot/rbcfg/src/main.c
index 5614a6c..b7cf79f 100644
--- a/package/boot/rbcfg/src/main.c
+++ b/package/boot/rbcfg/src/main.c
@@ -724,7 +724,7 @@ usage(void)
 		const struct rbcfg_command *cmd;
 		cmd = &rbcfg_commands[i];
 
-		len = snprintf(buf, sizeof(buf), cmd->usage);
+		len = snprintf(buf, sizeof(buf), "%s", cmd->usage);
 		buf[len] = '\0';
 		fprintf(stderr, "%s\n", buf);
 	}
-- 
1.7.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list