r1848 - trunk/data/qcsrc/common

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Aug 23 04:59:52 EDT 2006


Author: div0
Date: 2006-08-23 04:59:52 -0400 (Wed, 23 Aug 2006)
New Revision: 1848

Modified:
   trunk/data/qcsrc/common/util.qc
Log:
attempt to fix "backslash at end of line" bug


Modified: trunk/data/qcsrc/common/util.qc
===================================================================
--- trunk/data/qcsrc/common/util.qc	2006-08-22 22:36:35 UTC (rev 1847)
+++ trunk/data/qcsrc/common/util.qc	2006-08-23 08:59:52 UTC (rev 1848)
@@ -31,7 +31,8 @@
 				if (c == " ")
 					break;
 				if (c == "\\")
-					break;
+					if(j+1 < strlen(s))
+						break;
 				// we need to keep this tempstring alive even if substring is
 				// called repeatedly, so call strcat even though we're not
 				// doing anything




More information about the nexuiz-commits mailing list