2
0
mirror of https://github.com/rehlds/rehlds.git synced 2024-12-27 23:25:45 +03:00

FileSystem: Fixes #552

This commit is contained in:
s1lent 2017-12-11 18:09:45 +07:00
parent 60f2181a55
commit eaabafc16d
No known key found for this signature in database
GPG Key ID: 0FE401DC73916B5C

View File

@ -1384,7 +1384,7 @@ bool CBaseFileSystem::FindNextFileHelper(FindData_t *pFindData)
}
else
{
int len = Q_strlen(pSearchPath->GetPath().String() + pFindData->m_WildCardString.Size());
int len = Q_strlen(pSearchPath->GetPath().String()) + pFindData->m_WildCardString.Size();
char *pTmpFileName = (char *)alloca((len + 1) * sizeof(char));
Q_strcpy(pTmpFileName, pSearchPath->GetPath().String());
Q_strcat(pTmpFileName, pFindData->m_WildCardString.Base());