summaryrefslogtreecommitdiffstats
path: root/util/chesscountry.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/chesscountry.c')
-rw-r--r--util/chesscountry.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/util/chesscountry.c b/util/chesscountry.c
index 605efdf3..478db07f 100644
--- a/util/chesscountry.c
+++ b/util/chesscountry.c
@@ -109,9 +109,8 @@ main(void)
strcpy(str, buf);
p = strtok(buf, " ");
name[0] = '\0';
- if (p && *p != '#' && searchuser(p))
+ if (p && *p != '#' && searchuser(p, userid))
{
- strlcpy(userid, p, sizeof(userid));
i = 1;
if ((p = strtok(NULL, " ")))
@@ -131,7 +130,6 @@ main(void)
}
if (!strcmp("°£¦W", name))
{
- // XXX if userid="../../......."
sethomefile(buf, userid, photo_fname);
unlink(buf);
continue;