- Make some string functions in g_cmds.c cleaner, by DevHC
- embed VM_FREEBUFFERS() macro in do-while-loop
This commit is contained in:
parent
544a1c0c1a
commit
e05c9ad1c2
4 changed files with 4 additions and 4 deletions
|
@ -76,7 +76,7 @@ void DeathmatchScoreboardMessage( gentity_t *ent ) {
|
|||
perfect,
|
||||
cl->ps.persistant[PERS_CAPTURES]);
|
||||
j = strlen(entry);
|
||||
if (stringlength + j > 1024)
|
||||
if (stringlength + j >= sizeof(string))
|
||||
break;
|
||||
strcpy (string + stringlength, entry);
|
||||
stringlength += j;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue