From: Alan Modra Date: Mon, 26 Nov 2007 01:53:59 +0000 (+0000) Subject: * cxxfilt.c (demangle_it): Don't call printf without format string. X-Git-Tag: sid-snapshot-20071201~37 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1afcb04ce098f4d0d917841c08147ca7c91a41b0;p=platform%2Fupstream%2Fbinutils.git * cxxfilt.c (demangle_it): Don't call printf without format string. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 13a162f..4b8025b 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2007-11-26 Alan Modra + + * cxxfilt.c (demangle_it): Don't call printf without format string. + 2007-11-21 Hans-Peter Nilsson * dwarf.c (display_debug_loc): Cast section_end - start to long diff --git a/binutils/cxxfilt.c b/binutils/cxxfilt.c index e0d1b3f..770df9b 100644 --- a/binutils/cxxfilt.c +++ b/binutils/cxxfilt.c @@ -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); } }