aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot/rbcfg/src
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-06-30 08:19:44 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-06-30 08:19:44 +0000
commita68ae1a701c5f263f0318318882e15f60684d7a4 (patch)
treeef8b6e61c58dad72419e08bf82835aaac6237566 /package/boot/rbcfg/src
parent3c791c31bfd2ff383a3b46d7228350b504fa0ab5 (diff)
downloadupstream-a68ae1a701c5f263f0318318882e15f60684d7a4.tar.gz
upstream-a68ae1a701c5f263f0318318882e15f60684d7a4.tar.bz2
upstream-a68ae1a701c5f263f0318318882e15f60684d7a4.zip
rbcfg: fix format string bug
Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr> SVN-Revision: 41410
Diffstat (limited to 'package/boot/rbcfg/src')
-rw-r--r--package/boot/rbcfg/src/main.c2
1 files changed, 1 insertions, 1 deletions
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);
}