This commit is contained in:
etojuice 2020-11-12 02:26:59 +03:00
parent b1c055369d
commit bbfc3fe589

View File

@ -4420,7 +4420,7 @@ int ReloadMapCycleFile(char *filename, mapcycle_t *cycle)
#ifdef REGAMEDLL_FIXES #ifdef REGAMEDLL_FIXES
Q_strncpy(szMap, pToken, sizeof(szMap) - 1); Q_strncpy(szMap, pToken, sizeof(szMap) - 1);
szMap[sizeof(szMap) - 1] = 0; szMap[sizeof(szMap) - 1] = '\0';
#else #else
Q_strcpy(szMap, pToken); Q_strcpy(szMap, pToken);
#endif #endif