Make sure we use the correct style of filepath separator on Windows
[ardour.git] / libs / pbd / pathscanner.cc
index a064fdbc033ecd25d2fbf0fa98b6867c8fd669c9..6d3cba8d77117ef91eb91a135656ce4187935193 100644 (file)
@@ -170,7 +170,7 @@ PathScanner::run_scan_internal (vector<string *> *result,
                }
                closedir (dir);
                
-       } while ((limit < 0 || (nfound < limit)) && (thisdir = strtok (0, ":")));
+       } while ((limit < 0 || (nfound < limit)) && (thisdir = strtok (0, G_SEARCHPATH_SEPARATOR_S)));
 
        free (pathcopy);
        return result;