1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fix various memory access problems detected by valgrind

This commit is contained in:
Kahrl 2013-08-07 19:48:31 +02:00
parent 218f82f798
commit 2ed3067bbe
4 changed files with 9 additions and 1 deletions

View file

@ -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;
}