r803 - trunk/code/qcommon
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sun Jun 11 10:56:59 EDT 2006
Author: thilo
Date: 2006-06-11 10:56:58 -0400 (Sun, 11 Jun 2006)
New Revision: 803
Modified:
trunk/code/qcommon/msg.c
Log:
Fix client "freezes" if a user with ASCII characters > 127 enters a server. Reported by tjw
Modified: trunk/code/qcommon/msg.c
===================================================================
--- trunk/code/qcommon/msg.c 2006-06-11 05:09:07 UTC (rev 802)
+++ trunk/code/qcommon/msg.c 2006-06-11 14:56:58 UTC (rev 803)
@@ -492,6 +492,11 @@
if ( c == '%' ) {
c = '.';
}
+ // don't allow higher ascii values
+ if ( c > 127 ) {
+ c = '.';
+ }
+
string[l] = c;
l++;
} while (l < sizeof(string)-1);
More information about the quake3-commits
mailing list