bpf: format not a string literal
authorAlan Modra <amodra@gmail.com>
Tue, 25 Jul 2023 06:41:51 +0000 (16:11 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 26 Jul 2023 00:34:31 +0000 (10:04 +0930)
* config/tc-bpf.c (md_assemble): Correct as_bad call.

gas/config/tc-bpf.c

index c56b8fe984f9038e1d35a7e15ebd1b311f9db5fa..095b05ac7afab5f2c7d52b8961ef8309b2c83de3 100644 (file)
@@ -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);
         }