From a68ae1a701c5f263f0318318882e15f60684d7a4 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 30 Jun 2014 08:19:44 +0000 Subject: [PATCH] rbcfg: fix format string bug Signed-off-by: Etienne CHAMPETIER SVN-Revision: 41410 --- package/boot/rbcfg/src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/boot/rbcfg/src/main.c b/package/boot/rbcfg/src/main.c index 5614a6c22330..b7cf79ffaefe 100644 --- a/package/boot/rbcfg/src/main.c +++ b/package/boot/rbcfg/src/main.c @@ -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); } -- 2.30.2