mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
Remove chars with ascii value > 127 in MSG_ReadBigString too to make it correspond to the behaviour of WriteBigString.
This commit is contained in:
parent
e02617ee89
commit
394c09fa26
1 changed files with 4 additions and 0 deletions
|
@ -468,6 +468,10 @@ char *MSG_ReadBigString( msg_t *msg ) {
|
|||
if ( c == '%' ) {
|
||||
c = '.';
|
||||
}
|
||||
// don't allow higher ascii values
|
||||
if ( c > 127 ) {
|
||||
c = '.';
|
||||
}
|
||||
|
||||
string[l] = c;
|
||||
l++;
|
||||
|
|
Loading…
Reference in a new issue