rbcfg: fix format string bug
authorFelix Fietkau <nbd@openwrt.org>
Mon, 30 Jun 2014 08:19:44 +0000 (08:19 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 30 Jun 2014 08:19:44 +0000 (08:19 +0000)
Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr>
SVN-Revision: 41410

package/boot/rbcfg/src/main.c

index 5614a6c..b7cf79f 100644 (file)
@@ -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);
        }