mirror of
https://github.com/rehlds/rehlds.git
synced 2024-12-29 08:05:50 +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
|
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));
|
char *pTmpFileName = (char *)alloca((len + 1) * sizeof(char));
|
||||||
Q_strcpy(pTmpFileName, pSearchPath->GetPath().String());
|
Q_strcpy(pTmpFileName, pSearchPath->GetPath().String());
|
||||||
Q_strcat(pTmpFileName, pFindData->m_WildCardString.Base());
|
Q_strcat(pTmpFileName, pFindData->m_WildCardString.Base());
|
||||||
|
Loading…
Reference in New Issue
Block a user