uboot-at91: fix -Wformat-security
[openwrt/staging/dedeckeh.git] / package / boot / uboot-at91 / patches / 001-fix-Wformat-security.patch
diff --git a/package/boot/uboot-at91/patches/001-fix-Wformat-security.patch b/package/boot/uboot-at91/patches/001-fix-Wformat-security.patch
new file mode 100644 (file)
index 0000000..18f9af7
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/cmd/version.c b/cmd/version.c
+index b2fffe9..bcbbeb1 100644
+--- a/cmd/version.c
++++ b/cmd/version.c
+@@ -18,7 +18,7 @@ static int do_version(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+ {
+       char buf[DISPLAY_OPTIONS_BANNER_LENGTH];
+
+-      printf(display_options_get_banner(false, buf, sizeof(buf)));
++      printf("%s",display_options_get_banner(false, buf, sizeof(buf)));
+ #ifdef CC_VERSION_STRING
+       puts(CC_VERSION_STRING "\n");
+ #endif