summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-01-30 21:19:21 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-01-30 21:19:21 +0800
commit25b281586ee28f3933b2b3df365b3fa5980c3601 (patch)
tree547b39aa8a5de5f7de720d9fbbd06b091a6f785f
parent9c05bb3e40d3d1f596639998049b595f7fe024f0 (diff)
downloadpttbbs-25b281586ee28f3933b2b3df365b3fa5980c3601.tar
pttbbs-25b281586ee28f3933b2b3df365b3fa5980c3601.tar.gz
pttbbs-25b281586ee28f3933b2b3df365b3fa5980c3601.tar.bz2
pttbbs-25b281586ee28f3933b2b3df365b3fa5980c3601.tar.lz
pttbbs-25b281586ee28f3933b2b3df365b3fa5980c3601.tar.xz
pttbbs-25b281586ee28f3933b2b3df365b3fa5980c3601.tar.zst
pttbbs-25b281586ee28f3933b2b3df365b3fa5980c3601.zip
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1497 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/bbs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index d035daa6..37138433 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -434,9 +434,11 @@ 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, &fh);
+ strcpy(fh.owner, postfile->owner);
+ strcpy(fh.date, postfile->date);
+ strcpy(fh.title, postfile->title);
unlink(genbuf);
Link(fpath, genbuf);
postfile->filemode = FILE_LOCAL;