diff options
author | Tim Angus <tim@ngus.net> | 2006-06-17 23:13:57 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2006-06-17 23:13:57 +0000 |
commit | 579672760092292b7a9752899010ffa4ac6faf6f (patch) | |
tree | a59ed488de023b76032ad8f0bdad5dc40cf51bc4 /src/qcommon/msg.c | |
parent | da11bfa115f0670861cb18e05ec45ba515b7c3b7 (diff) |
* Merged ioq3-r810
Diffstat (limited to 'src/qcommon/msg.c')
-rw-r--r-- | src/qcommon/msg.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/qcommon/msg.c b/src/qcommon/msg.c index da96dab9..e4db4d8e 100644 --- a/src/qcommon/msg.c +++ b/src/qcommon/msg.c @@ -469,6 +469,10 @@ char *MSG_ReadBigString( msg_t *msg ) { if ( c == '%' ) { c = '.'; } + // don't allow higher ascii values + if ( c > 127 ) { + c = '.'; + } string[l] = c; l++; @@ -493,6 +497,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); |