aboutsummaryrefslogtreecommitdiff
path: root/src/filesys.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/filesys.cpp')
-rw-r--r--src/filesys.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filesys.cpp b/src/filesys.cpp
index 21ff199a8..356d3018d 100644
--- a/src/filesys.cpp
+++ b/src/filesys.cpp
@@ -595,7 +595,7 @@ bool PathStartsWith(std::string path, std::string prefix)
&& !IsDirDelimiter(path[pathpos+len])
&& prefixpos+len < prefixsize
&& !IsDirDelimiter(
- prefix[prefixsize+len]));
+ prefix[prefixpos+len]));
pathpos += len;
prefixpos += len;
}