summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-01-30 20:24:36 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-01-30 20:24:36 +0800
commitb28cac1428e0845037689964d4448f4dd6d0d786 (patch)
tree64f06b9a86e6c26be8255ca55a2210431b53588d /mbbsd
parente622c0cf62ea5d05a0923cb22555397a77387e24 (diff)
downloadpttbbs-b28cac1428e0845037689964d4448f4dd6d0d786.tar
pttbbs-b28cac1428e0845037689964d4448f4dd6d0d786.tar.gz
pttbbs-b28cac1428e0845037689964d4448f4dd6d0d786.tar.bz2
pttbbs-b28cac1428e0845037689964d4448f4dd6d0d786.tar.lz
pttbbs-b28cac1428e0845037689964d4448f4dd6d0d786.tar.xz
pttbbs-b28cac1428e0845037689964d4448f4dd6d0d786.tar.zst
pttbbs-b28cac1428e0845037689964d4448f4dd6d0d786.zip
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1493 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/bbs.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index d4a53fe8..868e2c07 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -433,14 +433,15 @@ void
do_crosspost(char *brd, fileheader_t *postfile, const char *fpath)
{
char genbuf[200];
-
+ fileheader_t fh;
+ memcpy(&fh, postfile, sizeof(fh));
setbpath(genbuf, brd);
- stampfile(genbuf, postfile);
+ stampfile(genbuf, &fh);
unlink(genbuf);
Link(fpath, genbuf);
postfile->filemode = FILE_LOCAL;
setbdir(genbuf, brd);
- if (append_record(genbuf, postfile, sizeof(fileheader_t)) != -1) {
+ if (append_record(genbuf, &fh, sizeof(fileheader_t)) != -1) {
setbtotal(getbnum(brd));
}
}