Author: nbd Date: 2014-06-30 10:19:44 +0200 (Mon, 30 Jun 2014) New Revision: 41410
Modified: trunk/package/boot/rbcfg/src/main.c Log: rbcfg: fix format string bug Signed-off-by: Etienne CHAMPETIER <[email protected]> Modified: trunk/package/boot/rbcfg/src/main.c =================================================================== --- trunk/package/boot/rbcfg/src/main.c 2014-06-30 07:56:33 UTC (rev 41409) +++ trunk/package/boot/rbcfg/src/main.c 2014-06-30 08:19:44 UTC (rev 41410) @@ -724,7 +724,7 @@ 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); } _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
