From 4687a1c9ffe0d1d3f6ea01f360faa542a5b6491c Mon Sep 17 00:00:00 2001 From: Kees Cook Date: Tue, 20 Mar 2007 17:16:36 +0000 Subject: format string protection/clean up (CVE-2007-1463, CVE-2007-1464) (bzr r2720) --- src/file.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/file.cpp') diff --git a/src/file.cpp b/src/file.cpp index ba68b171d..c5347a66e 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -283,7 +283,7 @@ void dump_str(gchar const *str, gchar const *prefix) } tmp += "]"; - g_message(tmp.c_str()); + g_message("%s", tmp.c_str()); } void dump_ustr(Glib::ustring const &ustr) @@ -344,7 +344,7 @@ void dump_ustr(Glib::ustring const &ustr) tmp += " "; } - g_message( tmp.c_str() ); + g_message( "%s", tmp.c_str() ); } } catch (...) { g_message("XXXXXXXXXXXXXXXXXX Exception" ); -- cgit v1.2.3