Remove chars with ascii value > 127 in MSG_ReadBigString too to make it correspond to the behaviour of WriteBigString.

This commit is contained in:
Thilo Schulz 2006-06-16 21:44:44 +00:00
parent e02617ee89
commit 394c09fa26
1 changed files with 4 additions and 0 deletions

View File

@ -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++;