rbcfg: fix format string bug
Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr> SVN-Revision: 41410
This commit is contained in:
parent
3c791c31bf
commit
a68ae1a701
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user