mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-08-01 02:15:54 -04:00
whoops
This commit is contained in:
@@ -875,6 +875,7 @@ bool TreeFile::stripTreeFileSearchPathFromFile(const char *inputPath, char *outp
|
||||
{
|
||||
// make sure the output buffer has enough room
|
||||
int const pathLength = static_cast<int>(strlen(path));
|
||||
int const outputLength = static_cast<int>(strlen(buffer)) - pathLength;
|
||||
if (outputLength > outputPathBufferSize)
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user