mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-05-16 00:28:04 +03:00
Fix crash caused by ReloadMapCycleFile function (#576)
* Fix crash caused by ReloadMapCycleFile function
This commit is contained in:
commit
99954a2646
@ -4418,7 +4418,12 @@ int ReloadMapCycleFile(char *filename, mapcycle_t *cycle)
|
|||||||
if (Q_strlen(pToken) <= 0)
|
if (Q_strlen(pToken) <= 0)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
#ifdef REGAMEDLL_FIXES
|
||||||
|
Q_strncpy(szMap, pToken, sizeof(szMap) - 1);
|
||||||
|
szMap[sizeof(szMap) - 1] = '\0';
|
||||||
|
#else
|
||||||
Q_strcpy(szMap, pToken);
|
Q_strcpy(szMap, pToken);
|
||||||
|
#endif
|
||||||
|
|
||||||
// Any more tokens on this line?
|
// Any more tokens on this line?
|
||||||
if (SharedTokenWaiting(pFileList))
|
if (SharedTokenWaiting(pFileList))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user