comparison 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
comparison
equal deleted inserted replaced
8861:31f864877246 8862:f71b749be1c1
643 } 643 }
644 644
645 std::string msg = buf.str (); 645 std::string msg = buf.str ();
646 646
647 if (! msg.empty ()) 647 if (! msg.empty ())
648 message (Vgud_mode ? 0 : "keyboard", msg.c_str ()); 648 message (Vgud_mode ? 0 : "keyboard", "%s", msg.c_str ());
649 649
650 unwind_protect::begin_frame ("get_debug_input"); 650 unwind_protect::begin_frame ("get_debug_input");
651 651
652 unwind_protect_str (VPS1); 652 unwind_protect_str (VPS1);
653 VPS1 = prompt; 653 VPS1 = prompt;