mirror of
https://github.com/kiwix/libkiwix.git
synced 2026-10-26 02:49:20 -04:00
+ fix bug in path computation in computeAbsolutePath()
This commit is contained in:
1 parent
9d371f295c
commit
cfa00c33f2
2 files changed
+4
-4
No files matched your search
@@ -27,13 +27,13 @@ bool isRelativePath(const string &path) {
|
||||
#endif
|
||||
}
|
||||
|
||||
string computeAbsolutePath(const string libraryPath, const string relativePath) {
|
||||
string computeAbsolutePath(const string path, const string relativePath) {
|
||||
#ifdef _WIN32
|
||||
string separator = "\\";
|
||||
#else
|
||||
string separator = "/";
|
||||
#endif
|
||||
string absolutePath = removeLastPathElement(libraryPath, true, false);
|
||||
string absolutePath = path;
|
||||
char *cRelativePath = strdup(relativePath.c_str());
|
||||
char *token = strtok(cRelativePath, "/");
|
||||
|
||||
|
||||
Reference in new issue
Block a user