summaryrefslogtreecommitdiff
path: root/src/qcommon/msg.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2006-06-17 23:13:57 +0000
committerTim Angus <tim@ngus.net>2006-06-17 23:13:57 +0000
commit579672760092292b7a9752899010ffa4ac6faf6f (patch)
treea59ed488de023b76032ad8f0bdad5dc40cf51bc4 /src/qcommon/msg.c
parentda11bfa115f0670861cb18e05ec45ba515b7c3b7 (diff)
* Merged ioq3-r810
Diffstat (limited to 'src/qcommon/msg.c')
-rw-r--r--src/qcommon/msg.c9
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);