From 17f3a99403f991ad3e9a61bd5b6e6d36f9895cc5 Mon Sep 17 00:00:00 2001 From: piaip Date: Thu, 15 Sep 2005 09:07:55 +0000 Subject: fix previous offset-by-one error --This line, afind those below, will be ignored-- M mbbsd/bbs.c git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3173 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/bbs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mbbsd/bbs.c') diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 7f14c9b6..6622adeb 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -1193,7 +1193,8 @@ edit_post(int ent, fileheader_t * fhdr, const char *direct) else fhdr->textlen = 0; - AppendTail(genbuf, fpath, fhdr->textlen); + AppendTail(genbuf, fpath, (fhdr->textlen > 0) ? + fhdr->textlen-1 : 0); } } else /* old flavor, no textlen info */ if (oldstat.st_mtime != newstat.st_mtime) -- cgit v1.2.3