aboutsummaryrefslogtreecommitdiffstats
path: root/code/qcommon/msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'code/qcommon/msg.c')
-rw-r--r--code/qcommon/msg.c4
1 files changed, 4 insertions, 0 deletions
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++;