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
@@ -238,7 +238,7 @@ int AAS_LoadFiles(const char *mapname)
|
||||
return errnum;
|
||||
|
||||
botimport.Print(PRT_MESSAGE, "loaded %s\n", aasfile);
|
||||
strncpy(aasworld.filename, aasfile, MAX_PATH);
|
||||
Q_strncpyz(aasworld.filename, aasfile, sizeof(aasworld.filename));
|
||||
return BLERR_NOERROR;
|
||||
} //end of the function AAS_LoadFiles
|
||||
//===========================================================================
|
||||
|
||||
Reference in new issue
Block a user