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 5614a6c22330a0e3fbd80ccc8231a8982e6e0bea..b7cf79ffaefe102efacf2bbbdb215d96028b9c30 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);
        }