Fix strncpy usage in botlib
All usage of strncpy in botlib should now either set string terminator or use Q_strncpyz.
This commit is contained in:
1 parent
8956ab41dd
commit
c12b81a273
8 files changed
+13
-14
No files matched your search
@@ -219,7 +219,7 @@ weaponconfig_t *LoadWeaponConfig(char *filename)
|
||||
max_projectileinfo = 32;
|
||||
LibVarSet("max_projectileinfo", "32");
|
||||
} //end if
|
||||
strncpy(path, filename, MAX_PATH);
|
||||
Q_strncpyz(path, filename, sizeof(path));
|
||||
PC_SetBaseFolder(BOTFILESBASEFOLDER);
|
||||
source = LoadSourceFile(path);
|
||||
if (!source)
|
||||
|
||||
Reference in new issue
Block a user