From 1ea0375ba4ece5120f130621c47d76b37d83bdfe Mon Sep 17 00:00:00 2001 From: piaip Date: Sun, 27 Nov 2011 13:16:50 +0000 Subject: fix auto forward git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5485 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/mbbsd/record.c | 4 +--- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3