summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2011-11-27 21:16:50 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2011-11-27 21:16:50 +0800
commit1ea0375ba4ece5120f130621c47d76b37d83bdfe (patch)
tree89281f22cb985083bd4b8d3fd76789cc073227ba
parent000d7ab058e53c30242d44bd27789fa9632453e0 (diff)
downloadpttbbs-1ea0375ba4ece5120f130621c47d76b37d83bdfe.tar
pttbbs-1ea0375ba4ece5120f130621c47d76b37d83bdfe.tar.gz
pttbbs-1ea0375ba4ece5120f130621c47d76b37d83bdfe.tar.bz2
pttbbs-1ea0375ba4ece5120f130621c47d76b37d83bdfe.tar.lz
pttbbs-1ea0375ba4ece5120f130621c47d76b37d83bdfe.tar.xz
pttbbs-1ea0375ba4ece5120f130621c47d76b37d83bdfe.tar.zst
pttbbs-1ea0375ba4ece5120f130621c47d76b37d83bdfe.zip
fix auto forward
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5485 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/record.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/pttbbs/mbbsd/record.c b/pttbbs/mbbsd/record.c
index 52317df9..fdd41b13 100644
--- a/pttbbs/mbbsd/record.c
+++ b/pttbbs/mbbsd/record.c
@@ -565,9 +565,7 @@ append_record_forward(char *fpath, fileheader_t * record, int size, const char *
return 0;
}
- buf[n + 1] = 0;
- strcat(buf, record->filename);
- append_record(fpath, record, size);
+ setdirpath(buf, fpath, record->filename);
// because too many user set wrong forward address,
// let's put their own address instead.
// and again because some really stupid user