summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-07-05 13:39:07 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-07-05 13:39:07 +0800
commit4400234c5cbc7d8fbc51da99f21b0e38efa9fd4d (patch)
tree5638273273226dd471d8af38d5d47f1820c7aa4a
parent269e51250f5b70785a3aabddb17a7eafa295a101 (diff)
downloadpttbbs-4400234c5cbc7d8fbc51da99f21b0e38efa9fd4d.tar
pttbbs-4400234c5cbc7d8fbc51da99f21b0e38efa9fd4d.tar.gz
pttbbs-4400234c5cbc7d8fbc51da99f21b0e38efa9fd4d.tar.bz2
pttbbs-4400234c5cbc7d8fbc51da99f21b0e38efa9fd4d.tar.lz
pttbbs-4400234c5cbc7d8fbc51da99f21b0e38efa9fd4d.tar.xz
pttbbs-4400234c5cbc7d8fbc51da99f21b0e38efa9fd4d.tar.zst
pttbbs-4400234c5cbc7d8fbc51da99f21b0e38efa9fd4d.zip
fix bug in sending a mail in userlist
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2115 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/talk.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index f887fd3e..f7e89313 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -2475,9 +2475,11 @@ userlist(void)
case 'm':
if (HAS_PERM(PERM_BASIC)) {
+ char userid[IDLEN + 1];
+ strlcpy(userid, uentp->userid, sizeof(userid));
stand_title("寄 信");
- prints("[寄信] 收信人:%s", uentp->userid);
- my_send(uentp->userid);
+ prints("[寄信] 收信人:%s", userid);
+ my_send(userid);
setutmpmode(LUSERS);
redrawall = redraw = 1;
}