From 4a30a9102dc92883e6d00bff10e7194fb4bcf678 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 10 Nov 2008 20:35:33 +0000 Subject: Fix Plugin name/symbol shadowing stuff that broke plugin loading (fix ticket #256). git-svn-id: http://svn.drobilla.net/lad/trunk/raul@1714 a436a847-0d15-0410-975c-d299462d15a1 --- src/Path.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Path.cpp b/src/Path.cpp index 4a41979..bd4a17a 100644 --- a/src/Path.cpp +++ b/src/Path.cpp @@ -187,7 +187,7 @@ Path::replace_invalid_chars(string& str, bool replace_slash) } } - if (str[str.length()-1] == '_') + if (str.length() != 1 && str[str.length()-1] == '_') str = str.substr(0, str.length()-1); } -- cgit v1.2.1