summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Loftis <ben@glw.com>2008-03-24 00:15:52 +0000
committerBen Loftis <ben@glw.com>2008-03-24 00:15:52 +0000
commit2ac3d8656515e67209a8f5cd82e9e5a2167dbb44 (patch)
tree9137a31c5c4065ac7591437e68fd325a86b0520f
parentd0b0e3f7dd4bd80a9f003bbb9cfbcf0af8c38400 (diff)
allow a wider selection of chars for pathname. fixes bug when session file cannot accomodate the actual path to audio files
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3167 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r--libs/ardour/utils.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/utils.cc b/libs/ardour/utils.cc
index f98b24a4f2..eeef52d7f8 100644
--- a/libs/ardour/utils.cc
+++ b/libs/ardour/utils.cc
@@ -92,13 +92,13 @@ ustring
legalize_for_path (ustring str)
{
ustring::size_type pos;
- ustring legal_chars = "abcdefghijklmnopqrtsuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_+=: ";
+ ustring illegal_chars = "/\\*";
ustring legal;
legal = str;
pos = 0;
- while ((pos = legal.find_first_not_of (legal_chars, pos)) != string::npos) {
+ while ((pos = legal.find_first_of (illegal_chars, pos)) != string::npos) {
legal.replace (pos, 1, "_");
pos += 1;
}