Remove chars with ascii value > 127 in MSG_ReadBigString too to make it correspond to the behaviour of WriteBigString.
This commit is contained in:
1 parent
e02617ee89
commit
394c09fa26
1 file changed
+4
@@ -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++;
|
||||||
|
|||||||
Reference in new issue
Block a user