100-format_string_fix.patch 470 B

1234567891011121314151617181920
  1. --- a/kexec/arch/i386/kexec-elf-x86.c
  2. +++ b/kexec/arch/i386/kexec-elf-x86.c
  3. @@ -296,6 +296,6 @@ out:
  4. free(command_line);
  5. free(modified_cmdline);
  6. if (error_msg)
  7. - die(error_msg);
  8. + die("%s", error_msg);
  9. return result;
  10. }
  11. --- a/kexec/arch/x86_64/kexec-elf-x86_64.c
  12. +++ b/kexec/arch/x86_64/kexec-elf-x86_64.c
  13. @@ -276,6 +276,6 @@ out:
  14. free(command_line);
  15. free(modified_cmdline);
  16. if (error_msg)
  17. - die(error_msg);
  18. + die("%s", error_msg);
  19. return result;
  20. }