- Make some string functions in g_cmds.c cleaner, by DevHC
- embed VM_FREEBUFFERS() macro in do-while-loop
This commit is contained in:
1 parent
544a1c0c1a
commit
e05c9ad1c2
4 files changed
+4
-4
No files matched your search
+1
-1
@@ -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;
|
||||
|
||||
+1
-1
@@ -1112,7 +1112,7 @@ void TeamplayInfoMessage( gentity_t *ent ) {
|
||||
i, player->client->pers.teamState.location, h, a,
|
||||
player->client->ps.weapon, player->s.powerups);
|
||||
j = strlen(entry);
|
||||
if (stringlength + j > sizeof(string))
|
||||
if (stringlength + j >= sizeof(string))
|
||||
break;
|
||||
strcpy (string + stringlength, entry);
|
||||
stringlength += j;
|
||||
|
||||
Reference in new issue
Block a user