diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-09-25 14:01:03 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-09-25 14:01:03 +0800 |
commit | 79d83827832f47bce28465646d89d3b76ddbbe99 (patch) | |
tree | 0a388b97151285165221c158fc069f2fe05a0414 /mbbsd | |
parent | 7f31f0a35cad5a5bfeec7bbd791eabed5f0dad90 (diff) | |
download | pttbbs-79d83827832f47bce28465646d89d3b76ddbbe99.tar pttbbs-79d83827832f47bce28465646d89d3b76ddbbe99.tar.gz pttbbs-79d83827832f47bce28465646d89d3b76ddbbe99.tar.bz2 pttbbs-79d83827832f47bce28465646d89d3b76ddbbe99.tar.lz pttbbs-79d83827832f47bce28465646d89d3b76ddbbe99.tar.xz pttbbs-79d83827832f47bce28465646d89d3b76ddbbe99.tar.zst pttbbs-79d83827832f47bce28465646d89d3b76ddbbe99.zip |
fix bug of do crosspost
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3431 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/bbs.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index d3adb195..9c51281f 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -596,13 +596,15 @@ do_crosspost(const char *brd, fileheader_t *postfile, const char *fpath, if(!strncasecmp(postfile->title, str_reply, 3)) len=len+4; - setbpath(genbuf, brd); memcpy(&fh, postfile, sizeof(fileheader_t)); if(isstamp) - stampfile(genbuf, &fh); + { + setbpath(genbuf, brd); + stampfile(genbuf, &fh); + } else - strcat(genbuf, postfile->filename); + setbfile(genbuf, brd, postfile->filename); if(!strcmp(brd, "UnAnonymous")) strcpy(fh.owner, cuser.userid); |