From: Felix Fietkau Date: Mon, 30 Jun 2014 08:19:44 +0000 (+0000) Subject: rbcfg: fix format string bug X-Git-Tag: reboot~6733 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a68ae1a701c5f263f0318318882e15f60684d7a4;p=openwrt%2Fstaging%2Fchunkeey.git rbcfg: fix format string bug Signed-off-by: Etienne CHAMPETIER SVN-Revision: 41410 --- diff --git a/package/boot/rbcfg/src/main.c b/package/boot/rbcfg/src/main.c index 5614a6c223..b7cf79ffae 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); }