* cxxfilt.c (demangle_it): Don't call printf without format string.
authorAlan Modra <amodra@gmail.com>
Mon, 26 Nov 2007 01:53:59 +0000 (01:53 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 26 Nov 2007 01:53:59 +0000 (01:53 +0000)
binutils/ChangeLog
binutils/cxxfilt.c

index 13a162f686e1e4fdef1b373ed727ad230dfa57d6..4b8025b85b74a362208b7c76cb5e519184b51337 100644 (file)
@@ -1,3 +1,7 @@
+2007-11-26  Alan Modra  <amodra@bigpond.net.au>
+
+       * cxxfilt.c (demangle_it): Don't call printf without format string.
+
 2007-11-21  Hans-Peter Nilsson  <hp@axis.com>
 
        * dwarf.c (display_debug_loc): Cast section_end - start to long
index e0d1b3fa8ed67a9eef477ee76ef663a839c065e5..770df9baf6e0307a9e53f3dca0cd38119f295251 100644 (file)
@@ -63,12 +63,12 @@ demangle_it (char *mangled_name)
   result = cplus_demangle (mangled_name + skip_first, flags);
 
   if (result == NULL)
-    printf (mangled_name);
+    printf ("%s", mangled_name);
   else
     {
       if (mangled_name[0] == '.')
        putchar ('.');
-      printf (result);
+      printf ("%s", result);
       free (result);
     }
 }