mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-12 23:44:21 +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 == '%' ) {
|
if ( c == '%' ) {
|
||||||
c = '.';
|
c = '.';
|
||||||
}
|
}
|
||||||
|
// don't allow higher ascii values
|
||||||
|
if ( c > 127 ) {
|
||||||
|
c = '.';
|
||||||
|
}
|
||||||
|
|
||||||
string[l] = c;
|
string[l] = c;
|
||||||
l++;
|
l++;
|
||||||
|
|
Loading…
Reference in a new issue