changeset 8862:f71b749be1c1

input.cc (get_debug_input): don't pass arbitrary input to message as a format string
author John W. Eaton <jwe@octave.org>
date Wed, 25 Feb 2009 00:39:09 -0500
parents 31f864877246
children 34a821854961
files src/ChangeLog src/input.cc
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Tue Feb 24 15:08:39 2009 -0500
+++ b/src/ChangeLog	Wed Feb 25 00:39:09 2009 -0500
@@ -1,3 +1,10 @@
+2009-02-25  John W. Eaton  <jwe@octave.org>
+
+	* input.cc (get_debug_input): Don't pass arbitrary input to
+	message as a format string.
+
+	* help.cc (__list_functions__): Simplify
+
 2009-02-24  John W. Eaton  <jwe@octave.org>
 
 	* help.cc, help.h (Vdoc_cache_file): New global variable.
--- a/src/input.cc	Tue Feb 24 15:08:39 2009 -0500
+++ b/src/input.cc	Wed Feb 25 00:39:09 2009 -0500
@@ -645,7 +645,7 @@
   std::string msg = buf.str ();
 
   if (! msg.empty ())
-    message (Vgud_mode ? 0 : "keyboard", msg.c_str ());
+    message (Vgud_mode ? 0 : "keyboard", "%s", msg.c_str ());
 
   unwind_protect::begin_frame ("get_debug_input");