diff options
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/bbs.c | 3 |
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) |