From 394c09fa268be9a7463565c50132067ac8b246df Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Fri, 16 Jun 2006 21:44:44 +0000 Subject: [PATCH] Remove chars with ascii value > 127 in MSG_ReadBigString too to make it correspond to the behaviour of WriteBigString. --- code/qcommon/msg.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/qcommon/msg.c b/code/qcommon/msg.c index c6290a0e..e743597c 100644 --- a/code/qcommon/msg.c +++ b/code/qcommon/msg.c @@ -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++;