diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-03-27 09:29:00 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-03-27 09:29:00 +0800 |
commit | 2c7fbc6db478e30200474dca9b0b16718fed4c65 (patch) | |
tree | 40cdd313eec52975cce1e30c208b40e64b65b14b /util | |
parent | 743837829dfd901322478e1166c9283bfe2e0a18 (diff) | |
download | pttbbs-2c7fbc6db478e30200474dca9b0b16718fed4c65.tar pttbbs-2c7fbc6db478e30200474dca9b0b16718fed4c65.tar.gz pttbbs-2c7fbc6db478e30200474dca9b0b16718fed4c65.tar.bz2 pttbbs-2c7fbc6db478e30200474dca9b0b16718fed4c65.tar.lz pttbbs-2c7fbc6db478e30200474dca9b0b16718fed4c65.tar.xz pttbbs-2c7fbc6db478e30200474dca9b0b16718fed4c65.tar.zst pttbbs-2c7fbc6db478e30200474dca9b0b16718fed4c65.zip |
fix bug introduced by r2627
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2680 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util')
-rw-r--r-- | util/bbsmail.c | 6 |
1 files 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)); } |