mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Fix various memory access problems detected by valgrind
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user