aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot/kexec-tools/patches/100-format_string_fix.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-12-19 18:55:45 +0100
committerFelix Fietkau <nbd@nbd.name>2016-12-20 16:24:21 +0100
commit1a071115d670a701332ff90c4324991728ccd6f4 (patch)
treeeaf654ec6d18eb74874de76c41c34115df6471c3 /package/boot/kexec-tools/patches/100-format_string_fix.patch
parent364ec6e0e0e651cbc5e6192d23e48ba86a5547a0 (diff)
downloadupstream-1a071115d670a701332ff90c4324991728ccd6f4.tar.gz
upstream-1a071115d670a701332ff90c4324991728ccd6f4.tar.bz2
upstream-1a071115d670a701332ff90c4324991728ccd6f4.zip
kexec-tools: update to 2.0.14-rc1, fix build errors
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/boot/kexec-tools/patches/100-format_string_fix.patch')
-rw-r--r--package/boot/kexec-tools/patches/100-format_string_fix.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/boot/kexec-tools/patches/100-format_string_fix.patch b/package/boot/kexec-tools/patches/100-format_string_fix.patch
new file mode 100644
index 0000000000..601121bcc0
--- /dev/null
+++ b/package/boot/kexec-tools/patches/100-format_string_fix.patch
@@ -0,0 +1,20 @@
+--- a/kexec/arch/i386/kexec-elf-x86.c
++++ b/kexec/arch/i386/kexec-elf-x86.c
+@@ -296,6 +296,6 @@ out:
+ free(command_line);
+ free(modified_cmdline);
+ if (error_msg)
+- die(error_msg);
++ die("%s", error_msg);
+ return result;
+ }
+--- a/kexec/arch/x86_64/kexec-elf-x86_64.c
++++ b/kexec/arch/x86_64/kexec-elf-x86_64.c
+@@ -276,6 +276,6 @@ out:
+ free(command_line);
+ free(modified_cmdline);
+ if (error_msg)
+- die(error_msg);
++ die("%s", error_msg);
+ return result;
+ }