* cxxfilt.c (demangle_it): Don't call printf without format string.

This commit is contained in:
Alan Modra 2007-11-26 01:53:59 +00:00
parent ee21dcabf8
commit 1afcb04ce0
2 changed files with 6 additions and 2 deletions

View 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

View 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);
}
}