4c968a2448ae5ceef6d65489bc9d4b80f932c3a3
[openwrt/openwrt.git] / package / boot / uboot-at91 / patches / 001-fix-Wformat-security.patch
1 --- a/cmd/version.c
2 +++ b/cmd/version.c
3 @@ -18,7 +18,7 @@ static int do_version(cmd_tbl_t *cmdtp,
4 {
5 char buf[DISPLAY_OPTIONS_BANNER_LENGTH];
6
7 - printf(display_options_get_banner(false, buf, sizeof(buf)));
8 + printf("%s",display_options_get_banner(false, buf, sizeof(buf)));
9 #ifdef CC_VERSION_STRING
10 puts(CC_VERSION_STRING "\n");
11 #endif
12 --- a/drivers/pinctrl/pinctrl-uclass.c
13 +++ b/drivers/pinctrl/pinctrl-uclass.c
14 @@ -368,7 +368,7 @@ int pinctrl_get_pin_name(struct udevice
15 if (!ops->get_pin_name)
16 return -ENOSYS;
17
18 - snprintf(buf, size, ops->get_pin_name(dev, selector));
19 + snprintf(buf, size, "%s", ops->get_pin_name(dev, selector));
20
21 return 0;
22 }
23 --- a/lib/efi_loader/efi_variable.c
24 +++ b/lib/efi_loader/efi_variable.c
25 @@ -522,7 +522,7 @@ efi_status_t EFIAPI efi_set_variable(u16
26
27 if (old_size)
28 /* APPEND_WRITE */
29 - s += sprintf(s, old_val);
30 + s += sprintf(s, "%s", old_val);
31 else
32 s += sprintf(s, "(blob)");
33