summaryrefslogtreecommitdiffstats
path: root/src/uscxml/util/URL.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/uscxml/util/URL.cpp')
-rw-r--r--src/uscxml/util/URL.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/uscxml/util/URL.cpp b/src/uscxml/util/URL.cpp
index ad271d5..a576f8b 100644
--- a/src/uscxml/util/URL.cpp
+++ b/src/uscxml/util/URL.cpp
@@ -138,10 +138,10 @@ URL URLImpl::resolveWithCWD(URLImpl* relative) {
if (!getcwd(currPath, sizeof(currPath))) {
ERROR_PLATFORM_THROW("Cannot get current working directory");
}
- currPath[sizeof(currPath) - 1] = '\0'; /* not really required */
+ currPath[sizeof(currPath) - 1] = '\0'; /* not really required? */
-
- std::shared_ptr<URLImpl> cwdURL(new URLImpl(std::string("file://") + currPath));
+ // without the trailing slash, last component is assumed a file
+ std::shared_ptr<URLImpl> cwdURL(new URLImpl(std::string("file://") + currPath + PATH_SEPERATOR));
return resolve(relative, cwdURL.get());
}