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
@@ -804,7 +804,7 @@ int PS_ReadPunctuation(script_t *script, token_t *token)
|
||||
//if the script contains the punctuation
|
||||
if (!strncmp(script->script_p, p, len))
|
||||
{
|
||||
strncpy(token->string, p, MAX_TOKEN);
|
||||
Q_strncpyz(token->string, p, MAX_TOKEN);
|
||||
script->script_p += len;
|
||||
token->type = TT_PUNCTUATION;
|
||||
//sub type is the number of the punctuation
|
||||
|
||||
Reference in new issue
Block a user