rbcfg: fix format string bug

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr>

SVN-Revision: 41410
lede-17.01
Felix Fietkau 2014-06-30 08:19:44 +00:00
parent 3c791c31bf
commit a68ae1a701
1 changed files with 1 additions and 1 deletions

View File

@ -724,7 +724,7 @@ usage(void)
const struct rbcfg_command *cmd; const struct rbcfg_command *cmd;
cmd = &rbcfg_commands[i]; cmd = &rbcfg_commands[i];
len = snprintf(buf, sizeof(buf), cmd->usage); len = snprintf(buf, sizeof(buf), "%s", cmd->usage);
buf[len] = '\0'; buf[len] = '\0';
fprintf(stderr, "%s\n", buf); fprintf(stderr, "%s\n", buf);
} }