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:
parent
218f82f798
commit
2ed3067bbe
4 changed files with 9 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue