# HG changeset patch # User John W. Eaton # Date 1235540349 18000 # Node ID f71b749be1c1fc7efe49baf92772478abb268802 # Parent 31f86487724662b579c219abe9d4383a6e90ac32 input.cc (get_debug_input): don't pass arbitrary input to message as a format string diff -r 31f864877246 -r f71b749be1c1 src/ChangeLog --- 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 + + * 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 * help.cc, help.h (Vdoc_cache_file): New global variable. diff -r 31f864877246 -r f71b749be1c1 src/input.cc --- 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");