summaryrefslogtreecommitdiffstats
path: root/mbbsd/bbs.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-01-07 05:47:48 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-01-07 05:47:48 +0800
commit955bf38c3b57fb2c3b1be5c9392beb7128668956 (patch)
tree7725bacd979190a3c3da01dd7d7c89318a388e18 /mbbsd/bbs.c
parentbe4e0a83b16c0b27305c25bf4b8bbe12adab52f1 (diff)
downloadpttbbs-955bf38c3b57fb2c3b1be5c9392beb7128668956.tar
pttbbs-955bf38c3b57fb2c3b1be5c9392beb7128668956.tar.gz
pttbbs-955bf38c3b57fb2c3b1be5c9392beb7128668956.tar.bz2
pttbbs-955bf38c3b57fb2c3b1be5c9392beb7128668956.tar.lz
pttbbs-955bf38c3b57fb2c3b1be5c9392beb7128668956.tar.xz
pttbbs-955bf38c3b57fb2c3b1be5c9392beb7128668956.tar.zst
pttbbs-955bf38c3b57fb2c3b1be5c9392beb7128668956.zip
fix a bug.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3467 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r--mbbsd/bbs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 20b2327e..2c7f7f98 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -760,7 +760,7 @@ static int
do_general(int isbid)
{
bid_t bidinfo;
- fileheader_t postfile;
+ fileheader_t postfile, fh;
char fpath[80], buf[80];
int aborted, defanony, ifuseanony, i;
char genbuf[200], *owner;
@@ -944,7 +944,8 @@ do_general(int isbid)
}
strcpy(genbuf, fpath);
setbpath(fpath, currboard);
- stampfile(fpath, &postfile);
+ stampfile(fpath, &fh);
+ strcpy(postfile.filename, fh.filename);
// Ptt: stamp file again to make it order
// fix the bug that search failure in getindex
//