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:
parent
60f2181a55
commit
eaabafc16d
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user