summaryrefslogtreecommitdiffstats
path: root/mbbsd/mail.c
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-05 17:16:06 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-05 17:16:06 +0800
commit9b691d3d21047d1121ab62994e124385359bbdaa (patch)
tree75384d20833d938c80fbf8d37708aace98f2d120 /mbbsd/mail.c
parent50a91ac9fcb6ffa78377e8fb81adb65e7c3a91c7 (diff)
downloadpttbbs-9b691d3d21047d1121ab62994e124385359bbdaa.tar
pttbbs-9b691d3d21047d1121ab62994e124385359bbdaa.tar.gz
pttbbs-9b691d3d21047d1121ab62994e124385359bbdaa.tar.bz2
pttbbs-9b691d3d21047d1121ab62994e124385359bbdaa.tar.lz
pttbbs-9b691d3d21047d1121ab62994e124385359bbdaa.tar.xz
pttbbs-9b691d3d21047d1121ab62994e124385359bbdaa.tar.zst
pttbbs-9b691d3d21047d1121ab62994e124385359bbdaa.zip
Fix currboard usage when crosspost.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1697 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mail.c')
-rw-r--r--mbbsd/mail.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c
index 60f52e2b..ff4583ea 100644
--- a/mbbsd/mail.c
+++ b/mbbsd/mail.c
@@ -1153,14 +1153,15 @@ mail_cross_post(int ent, fileheader_t * fhdr, char *direct)
}
setuserfile(fname, fhdr->filename);
if (ent) {
+ char *save_currboard;
xptr = fopen(xfpath, "w");
assert(xptr);
strlcpy(save_title, xfile.title, sizeof(save_title));
- strlcpy(xfpath, currboard, sizeof(xfpath));
- strlcpy(currboard, xboard, sizeof(currboard));
+ save_currboard = currboard;
+ currboard = xboard;
write_header(xptr);
- strlcpy(currboard, xfpath, sizeof(currboard));
+ currboard = save_currboard;
fprintf(xptr, "※ [本文轉錄自 %s 信箱]\n\n", cuser->userid);