diff options
author | Nick Clifton <nickc@redhat.com> | 2022-08-22 16:19:17 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2022-08-22 16:19:17 +0100 |
commit | b3ea2010cd06d49dd4fbfaa64b055700f7869e34 (patch) | |
tree | a19a08f7a7909156669f3de9e98fafd839251464 /binutils | |
parent | 521f726815eb426660f6b9ecc005fbab6c1b00ea (diff) | |
download | gdb-b3ea2010cd06d49dd4fbfaa64b055700f7869e34.zip gdb-b3ea2010cd06d49dd4fbfaa64b055700f7869e34.tar.gz gdb-b3ea2010cd06d49dd4fbfaa64b055700f7869e34.tar.bz2 |
Fix compile time warning from Clang about error messages not being printed safely.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/readelf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c index b630166..cafba9a 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -5735,9 +5735,9 @@ check_magic_number (Filedata * filedata, Elf_Internal_Ehdr * header) so we provide two different kinds of error message. */ if (filedata->archive_file_size > 0 && known_magic[i].ar_message != NULL) - error (known_magic[i].ar_message); + error ("%s", known_magic[i].ar_message); else - error (known_magic[i].obj_message); + error ("%s", known_magic[i].obj_message); return false; } } |