aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot/uboot-at91/patches/001-fix-Wformat-security.patch
diff options
context:
space:
mode:
authorSandeep Sheriker M <sandeep.sheriker@microchip.com>2019-08-14 00:42:14 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2019-08-17 23:08:10 +0200
commitb39dc6e550f7aa2f6870204670e9adaff4ebc68f (patch)
tree57655737dedb1cfe088ca6bbfb69ede34e236e3e /package/boot/uboot-at91/patches/001-fix-Wformat-security.patch
parentadc69febc0e2d48810383e12bcd4ae03fe9feefc (diff)
downloadupstream-b39dc6e550f7aa2f6870204670e9adaff4ebc68f.tar.gz
upstream-b39dc6e550f7aa2f6870204670e9adaff4ebc68f.tar.bz2
upstream-b39dc6e550f7aa2f6870204670e9adaff4ebc68f.zip
uboot-at91: fix -Wformat-security
add patch to fix -Wformat-security warnings. Signed-off-by: Sandeep Sheriker M <sandeep.sheriker@microchip.com>
Diffstat (limited to 'package/boot/uboot-at91/patches/001-fix-Wformat-security.patch')
-rw-r--r--package/boot/uboot-at91/patches/001-fix-Wformat-security.patch13
1 files changed, 13 insertions, 0 deletions
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
index 0000000000..18f9af742c
--- /dev/null
+++ b/package/boot/uboot-at91/patches/001-fix-Wformat-security.patch
@@ -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