From 3a98677978bd7549f0cb8e8e4d500ee344305c41 Mon Sep 17 00:00:00 2001 From: thilo Date: Fri, 16 Jun 2006 21:44:44 +0000 Subject: Remove chars with ascii value > 127 in MSG_ReadBigString too to make it correspond to the behaviour of WriteBigString. git-svn-id: svn://svn.icculus.org/quake3/trunk@806 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/qcommon/msg.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/qcommon/msg.c b/code/qcommon/msg.c index c6290a0..e743597 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++; -- cgit v1.2.3