From 2c7fbc6db478e30200474dca9b0b16718fed4c65 Mon Sep 17 00:00:00 2001 From: kcwu Date: Sun, 27 Mar 2005 01:29:00 +0000 Subject: fix bug introduced by r2627 git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2680 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- util/bbsmail.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/util/bbsmail.c b/util/bbsmail.c index 1941fa08..06b9fefe 100644 --- a/util/bbsmail.c +++ b/util/bbsmail.c @@ -96,7 +96,7 @@ int mail2bbs(char *userid) if( xuser.uflag2 & REJ_OUTTAMAIL ) return -1; //不接受站外信 - sprintf(filename, BBSHOME "/home/%c/%s", userid[0], userid); + sprintf(filename, BBSHOME "/home/%c/%s", xuser.userid[0], xuser.userid); if( stat(filename, &st) == -1 ){ if( mkdir(filename, 0755) == -1 ){ @@ -210,7 +210,7 @@ int mail2bbs(char *userid) } fclose(fout); - sprintf(genbuf, "%s => %s", sender, userid); + sprintf(genbuf, "%s => %s", sender, xuser.userid); mailog(genbuf); /* append the record to the MAIL control file */ @@ -222,7 +222,7 @@ int mail2bbs(char *userid) sender[IDLEN + 1] = '\0'; strlcpy(mymail.owner, sender, sizeof(mymail.owner)); - sprintf(genbuf, BBSHOME "/home/%c/%s/.DIR", userid[0], userid); + sprintf(genbuf, BBSHOME "/home/%c/%s/.DIR", xuser.userid[0], xuser.userid); mailalertuid(uid); return append_record(genbuf, &mymail, sizeof(mymail)); } -- cgit v1.2.3