diff --git a/Fltk/optionWindow.cpp b/Fltk/optionWindow.cpp
index a876df7d788fe22fb56b5f0a9466a9067d5527fb..5bf60e597d7cccf91658b2b08bd20ff096f4c897 100644
--- a/Fltk/optionWindow.cpp
+++ b/Fltk/optionWindow.cpp
@@ -1021,7 +1021,7 @@ static void view_options_ok_cb(Fl_Widget *w, void *data)
 
       // view_inputs
 
-      const char *str;
+      std::string str;
 
       str = o->view.input[0]->value();
       if(force || (str != name))