add required virtual method for SrcFileSource
[ardour.git] / libs / gtkmm2ext / actions.cc
index 84a738f278559a84f1a6149327d6e9a8bbaa3abf..200308a254b3bdbafae9b32ed89af930eaf3b115 100644 (file)
@@ -27,6 +27,7 @@
 #include <gtk/gtkuimanager.h>
 #include <gtk/gtkactiongroup.h>
 
+#include <gtkmm.h>
 #include <gtkmm/accelmap.h>
 #include <gtkmm/uimanager.h>
 
@@ -265,15 +266,15 @@ ActionManager::get_action (const char* path)
                path++;
        }
 
-       char copy[len+1];
-       strcpy (copy, path);
-       char* slash = strchr (copy, '/');
+       vector<char> copy(len+1);
+       strcpy (&copy[0], path);
+       char* slash = strchr (&copy[0], '/');
        if (!slash) {
                return RefPtr<Action> ();
        }
        *slash = '\0';
 
-       return get_action (copy, ++slash);
+       return get_action (&copy[0], ++slash);
        
 }