Fix inconsistencies with buffer sizes for player names.

Found any I could not using MAX_NAME_LENGTH and changed them to use it. I think that we should
increase MAX_NAME_LENGTH to 128 for CS:GO at some point as that's what it uses internally.
(Presumably to get the client's full multibyte name from Steam without truncation mid-codepoint which
can happen in other games. Steam's max is 32 characters if I remember correctly, but allows multibyte chars).
This commit is contained in:
Nicholas Hastings
2015-06-03 22:40:43 -04:00
parent 5139eef183
commit 9e0dbfcf68
16 changed files with 26 additions and 26 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ PrepareBan(client, target, time, const String:reason[])
return;
}
new String:name[32];
new String:name[MAX_NAME_LENGTH];
GetClientName(target, name, sizeof(name));
if (!time)