* bpf: format not a string literal
@ 2023-07-26 0:38 Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2023-07-26 0:38 UTC (permalink / raw)
To: binutils
* config/tc-bpf.c (md_assemble): Correct as_bad call.
diff --git a/gas/config/tc-bpf.c b/gas/config/tc-bpf.c
index c56b8fe984f..095b05ac7af 100644
--- a/gas/config/tc-bpf.c
+++ b/gas/config/tc-bpf.c
@@ -853,7 +853,7 @@ md_assemble (char *str ATTRIBUTE_UNUSED)
as_bad (_("unrecognized instruction `%s'"), str);
if (errmsg != NULL)
{
- as_bad (errmsg);
+ as_bad ("%s", errmsg);
free (errmsg);
}
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-07-26 0:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-26 0:38 bpf: format not a string literal Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).