diff options
author | Robin Gareus <robin@gareus.org> | 2013-06-23 17:58:52 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2013-06-23 17:58:52 +0200 |
commit | 60e4598aec090810f105d0e8cbcd578bc67043a9 (patch) | |
tree | 9aaae96f83084c15275618c55028e31227c1fdf9 /gtk2_ardour | |
parent | 2b9ee3b0f4bab4a8c352f0f032e6ab425e546137 (diff) | |
parent | 8af47234fbd8a5be50e6f85dd1edc6cb40990d77 (diff) |
Merge branch 'patches' of https://github.com/jdekozak/ardour
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/editor.cc | 8 |
1 files changed, 4 insertions, 4 deletions
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<char *> (p), txt.length(), 0); - const_cast<char*>(p)[txt.length()] = '\0'; + p = (char *) malloc (txt.length() + 1); + txt.copy (p, txt.length(), 0); + p[txt.length()] = '\0'; while (p) { |