summaryrefslogtreecommitdiffstats
path: root/mbbsd/bbs.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/bbs.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/bbs.c')
-rw-r--r--mbbsd/bbs.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 0960080e..be55fa57 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -1084,6 +1084,7 @@ cross_post(int ent, fileheader_t * fhdr, char *direct)
getdata(2, 0, "(S)存檔 (L)站內 (Q)取消?[Q] ", genbuf, 3, LCECHO);
if (genbuf[0] == 'l' || genbuf[0] == 's') {
int currmode0 = currmode;
+ char *save_currboard;
currmode = 0;
setbpath(xfpath, xboard);
@@ -1100,10 +1101,10 @@ cross_post(int ent, fileheader_t * fhdr, char *direct)
xptr = fopen(xfpath, "w");
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", currboard);