diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index 761404ba18..d3e3ae9828 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -3125,12 +3125,12 @@ Editor::convert_drop_to_paths ( */ string txt = data.get_text(); - const char* p; + char* p; const char* q; - p = (const char *) malloc (txt.length() + 1); - txt.copy (const_cast (p), txt.length(), 0); - const_cast(p)[txt.length()] = '\0'; + p = (char *) malloc (txt.length() + 1); + txt.copy (p, txt.length(), 0); + p[txt.length()] = '\0'; while (p) {