diff options
Diffstat (limited to 'code')
-rw-r--r-- | code/qcommon/msg.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/code/qcommon/msg.c b/code/qcommon/msg.c index d16fd58..c6290a0 100644 --- a/code/qcommon/msg.c +++ b/code/qcommon/msg.c @@ -492,6 +492,11 @@ char *MSG_ReadStringLine( msg_t *msg ) { if ( c == '%' ) { c = '.'; } + // don't allow higher ascii values + if ( c > 127 ) { + c = '.'; + } + string[l] = c; l++; } while (l < sizeof(string)-1); |