diff src/input.cc @ 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 c74389115610
children 4d812facab0e
line wrap: on
line diff
--- 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");