Skip to content

Commit

Permalink
Remove chars with ascii value > 127 in MSG_ReadBigString too to make …
Browse files Browse the repository at this point in the history
…it correspond to the behaviour of WriteBigString.
  • Loading branch information
Thilo Schulz committed Jun 16, 2006
1 parent e02617e commit 394c09f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/qcommon/msg.c
Expand Up @@ -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++;
Expand Down

0 comments on commit 394c09f

Please sign in to comment.