summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mbbsd/mail.c13
-rw-r--r--mbbsd/pmore.c2
2 files changed, 9 insertions, 6 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c
index e0195689..8fd6e36c 100644
--- a/mbbsd/mail.c
+++ b/mbbsd/mail.c
@@ -271,11 +271,14 @@ do_send(const char *userid, const char *title)
if (!(xuser.userlevel & PERM_READMAIL))
return -3;
- if (!title)
- getdata(2, 0, "主題:", save_title, STRLEN - 20, DOECHO);
curredit |= EDIT_MAIL;
curredit &= ~EDIT_ITEM;
}
+ /* process title */
+ if (title)
+ strncpy(save_title, title, STRLEN-1);
+ else
+ getdata(2, 0, "主題:", save_title, STRLEN - 20, DOECHO);
setutmpmode(SMAIL);
@@ -291,7 +294,7 @@ do_send(const char *userid, const char *title)
}
clear();
prints("信件即將寄給 %s\n標題為:%s\n確定要寄出嗎? (Y/N) [Y]",
- userid, title);
+ userid, save_title);
ch = igetch();
switch (ch) {
case 'N':
@@ -303,9 +306,9 @@ do_send(const char *userid, const char *title)
outs("Y\n請稍候, 信件傳遞中...\n");
res =
#ifndef USE_BSMTP
- bbs_sendmail(fpath, title, userid);
+ bbs_sendmail(fpath, save_title, userid);
#else
- bsmtp(fpath, title, userid, 0);
+ bsmtp(fpath, save_title, userid, 0);
#endif
hold_mail(fpath, userid);
}
diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c
index 03433603..c8f1ded3 100644
--- a/mbbsd/pmore.c
+++ b/mbbsd/pmore.c
@@ -1884,7 +1884,7 @@ pmore(char *fpath, int promptend)
if(postfix1len > 0)
outs(
mf_viewedAll() ?
- ANSI_COLOR(0;31;47)" (y)" ANSI_COLOR(30) "回信"
+ ANSI_COLOR(0;31;47)"(y)" ANSI_COLOR(30) "回信"
ANSI_COLOR(31) "(X)" ANSI_COLOR(30) "推文 "
:
ANSI_COLOR(0;31;47) "(h)"