[mw-devel] MW3 r897 - in branches/portable: . src

pwb at sucs.org pwb at sucs.org
Sat Jul 29 01:42:47 BST 2006


Author: pwb
Date: 2006-07-29 01:42:43 +0100 (Sat, 29 Jul 2006)
New Revision: 897

Modified:
   branches/portable/src/user.c
   branches/portable/users.bb
Log:
add check for isascii() to strip_name. Fixes #8.


Modified: branches/portable/src/user.c
===================================================================
--- branches/portable/src/user.c	2006-07-28 23:25:25 UTC (rev 896)
+++ branches/portable/src/user.c	2006-07-29 00:42:43 UTC (rev 897)
@@ -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;

Modified: branches/portable/users.bb
===================================================================
--- branches/portable/users.bb	2006-07-28 23:25:25 UTC (rev 896)
+++ branches/portable/users.bb	2006-07-29 00:42:43 UTC (rev 897)
@@ -1 +1 @@
-finnw
\ No newline at end of file
+pwb
\ No newline at end of file




More information about the mw-devel mailing list