diff --git a/Fltk/visibilityWindow.cpp b/Fltk/visibilityWindow.cpp
index ad8d2fb551ee59c4a9d7ab6643a7d98c532304f9..8302dcd7fc522e92f1808c8b44ef3aa86e556710 100644
--- a/Fltk/visibilityWindow.cpp
+++ b/Fltk/visibilityWindow.cpp
@@ -708,7 +708,7 @@ void visibility_cb(Fl_Widget *w, void *data)
 static void visibility_save_cb(Fl_Widget *w, void *data)
 {
   Msg::StatusBar(2, true, "Appending visibility info to '%s'...", 
-                 GModel::current()->getFileName());
+                 GModel::current()->getFileName().c_str());
   // get the whole visibility information in geo format
   std::vector<int> state[4][2];
   GModel *m = GModel::current();