This commit is contained in:
DarthArgus
2015-10-27 01:46:44 -05:00
parent b34b3e9555
commit 4a87008941
@@ -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;