From 1bf90e5ce6b77e61ea5ce01172f14d0916b27a1c Mon Sep 17 00:00:00 2001 From: thilo Date: Sun, 11 Jun 2006 14:56:58 +0000 Subject: Fix client "freezes" if a user with ASCII characters > 127 enters a server. Reported by tjw git-svn-id: svn://svn.icculus.org/quake3/trunk@803 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/qcommon/msg.c | 5 +++++ 1 file changed, 5 insertions(+) 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); -- cgit v1.2.3