rbcfg: fix format string bug

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

SVN-Revision: 41410
This commit is contained in:
Felix Fietkau 2014-06-30 08:19:44 +00:00
parent 3c791c31bf
commit a68ae1a701

View 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);
}