[mw-devel] MW3 r1372 - trunk/src/webclient
arthur at sucs.org
arthur at sucs.org
Sat Oct 4 22:07:56 BST 2014
Author: arthur
Date: 2014-10-04 22:07:56 +0100 (Sat, 04 Oct 2014)
New Revision: 1372
Modified:
trunk/src/webclient/import.c
Log:
Dont do substring match on usernames, match the whole thing
Modified: trunk/src/webclient/import.c
===================================================================
--- trunk/src/webclient/import.c 2014-09-09 13:30:02 UTC (rev 1371)
+++ trunk/src/webclient/import.c 2014-10-04 21:07:56 UTC (rev 1372)
@@ -176,7 +176,7 @@
if (access(USERFILE,00)) return(false);
file=userdb_open(O_RDONLY);
while (!found && get_person(file,usr))
- if (!strncasecmp(usr->name,name,strlen(name)) && !u_del(usr->status))
+ if (!strcasecmp(usr->name,name) && !u_del(usr->status))
found=true;
if (found)
*userposn=lseek(file,0,1)-sizeof(struct person);
More information about the mw-devel
mailing list