mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2025-03-04 23:30:56 +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 == '%' ) {
|
if ( c == '%' ) {
|
||||||
c = '.';
|
c = '.';
|
||||||
}
|
}
|
||||||
|
// don't allow higher ascii values
|
||||||
|
if ( c > 127 ) {
|
||||||
|
c = '.';
|
||||||
|
}
|
||||||
|
|
||||||
string[l] = c;
|
string[l] = c;
|
||||||
l++;
|
l++;
|
||||||
} while (l < sizeof(string)-1);
|
} while (l < sizeof(string)-1);
|
||||||
|
|
Loading…
Reference in a new issue