aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-06-16 21:44:44 +0000
committerthilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-06-16 21:44:44 +0000
commit3a98677978bd7549f0cb8e8e4d500ee344305c41 (patch)
tree82a0e007673e23d47f46d692b80f52962f17e77f
parent8cb094c8701e42df7749ec6691543e636160de4c (diff)
downloadioquake3-aero-3a98677978bd7549f0cb8e8e4d500ee344305c41.tar.gz
ioquake3-aero-3a98677978bd7549f0cb8e8e4d500ee344305c41.zip
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
-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++;