* 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

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