summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-09-15 17:07:55 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-09-15 17:07:55 +0800
commit17f3a99403f991ad3e9a61bd5b6e6d36f9895cc5 (patch)
tree8abfbae17ec0ac0d832b5bd706cbbcb63fc9b9e6 /mbbsd
parent53923bff58000761fcfa19c346727fb9eb877047 (diff)
downloadpttbbs-17f3a99403f991ad3e9a61bd5b6e6d36f9895cc5.tar
pttbbs-17f3a99403f991ad3e9a61bd5b6e6d36f9895cc5.tar.gz
pttbbs-17f3a99403f991ad3e9a61bd5b6e6d36f9895cc5.tar.bz2
pttbbs-17f3a99403f991ad3e9a61bd5b6e6d36f9895cc5.tar.lz
pttbbs-17f3a99403f991ad3e9a61bd5b6e6d36f9895cc5.tar.xz
pttbbs-17f3a99403f991ad3e9a61bd5b6e6d36f9895cc5.tar.zst
pttbbs-17f3a99403f991ad3e9a61bd5b6e6d36f9895cc5.zip
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
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/bbs.c3
1 files changed, 2 insertions, 1 deletions
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)