aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot
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
commit9a5c8de7b93dc62d97af994148fb6e22115e27e5 (patch)
tree2fa8ecbbf17c7d11a32be5f99e8437ad94bfa25c /package/boot
parentd5441bd8c853e3f6187bb1fc83fd69bb58badf8f (diff)
downloadupstream-9a5c8de7b93dc62d97af994148fb6e22115e27e5.tar.gz
upstream-9a5c8de7b93dc62d97af994148fb6e22115e27e5.tar.bz2
upstream-9a5c8de7b93dc62d97af994148fb6e22115e27e5.zip
rbcfg: fix format string bug
Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41410 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/boot')
-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);
}