mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-28 06:52:35 +00:00
Fix client "freezes" if a user with ASCII characters > 127 enters a server. Reported by tjw
This commit is contained in:
parent
d9fe81c08e
commit
c9c15562ea
1 changed files with 5 additions and 0 deletions
|
@ -492,6 +492,11 @@ char *MSG_ReadStringLine( msg_t *msg ) {
|
|||
if ( c == '%' ) {
|
||||
c = '.';
|
||||
}
|
||||
// don't allow higher ascii values
|
||||
if ( c > 127 ) {
|
||||
c = '.';
|
||||
}
|
||||
|
||||
string[l] = c;
|
||||
l++;
|
||||
} while (l < sizeof(string)-1);
|
||||
|
|
Loading…
Reference in a new issue