[mw-devel] MW3 r899 - trunk/src

pwb at sucs.org pwb at sucs.org
Sat Jul 29 01:57:40 BST 2006


Author: pwb
Date: 2006-07-29 01:57:38 +0100 (Sat, 29 Jul 2006)
New Revision: 899

Modified:
   trunk/src/user.c
Log:
merge changes from [897]


Modified: trunk/src/user.c
===================================================================
--- trunk/src/user.c	2006-07-29 00:56:48 UTC (rev 898)
+++ trunk/src/user.c	2006-07-29 00:57:38 UTC (rev 899)
@@ -119,7 +119,7 @@
 	array=(char *)malloc(len+1);
 	for (i=0;i<len;i++)
 	{
-		if (isalnum(string[i]) || string[i]=='_' || string[i]=='-')
+		if (isascii(string[i]) && (isalnum(string[i]) || string[i]=='_' || string[i]=='-'))
 			array[ptr++]=string[i];
 	}
 	array[ptr]=0;




More information about the mw-devel mailing list