r806 - trunk/code/qcommon

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Jun 16 17:44:44 EDT 2006


Author: thilo
Date: 2006-06-16 17:44:44 -0400 (Fri, 16 Jun 2006)
New Revision: 806

Modified:
   trunk/code/qcommon/msg.c
Log:
Remove chars with ascii value > 127 in MSG_ReadBigString too to make it correspond to the behaviour of WriteBigString.


Modified: trunk/code/qcommon/msg.c
===================================================================
--- trunk/code/qcommon/msg.c	2006-06-16 20:47:29 UTC (rev 805)
+++ trunk/code/qcommon/msg.c	2006-06-16 21:44:44 UTC (rev 806)
@@ -468,6 +468,10 @@
 		if ( c == '%' ) {
 			c = '.';
 		}
+		// don't allow higher ascii values
+		if ( c > 127 ) {
+			c = '.';
+		}
 
 		string[l] = c;
 		l++;




More information about the quake3-commits mailing list