diff options
Diffstat (limited to 'src/Fl_Value_Input.cxx')
| -rw-r--r-- | src/Fl_Value_Input.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Fl_Value_Input.cxx b/src/Fl_Value_Input.cxx index c44386662..781d9fcdf 100644 --- a/src/Fl_Value_Input.cxx +++ b/src/Fl_Value_Input.cxx @@ -51,8 +51,9 @@ void Fl_Value_Input::resize(int X, int Y, int W, int H) { } void Fl_Value_Input::value_damage() { - std::string buf = format_str(); - input.value(buf.c_str()); + char buf[129]; + format(buf); + input.value(buf); input.mark(input.insert_position()); // turn off selection highlight } |
