summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2013-11-10 10:21:02 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2013-11-10 10:21:02 +0800
commitac534532fb771790ed8fd5134005791fc4578858 (patch)
tree4aee33838c51a1c2f96fbb6f79129d6b518aad51
parent4746f9358506457c33a8458e7956836aaecfbae7 (diff)
downloadpttbbs-ac534532fb771790ed8fd5134005791fc4578858.tar
pttbbs-ac534532fb771790ed8fd5134005791fc4578858.tar.gz
pttbbs-ac534532fb771790ed8fd5134005791fc4578858.tar.bz2
pttbbs-ac534532fb771790ed8fd5134005791fc4578858.tar.lz
pttbbs-ac534532fb771790ed8fd5134005791fc4578858.tar.xz
pttbbs-ac534532fb771790ed8fd5134005791fc4578858.tar.zst
pttbbs-ac534532fb771790ed8fd5134005791fc4578858.zip
Fix offset-by-one error in b_posttype #1IUAbtbv (SYSOP) [ptt2.cc]
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5902 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/board.c b/pttbbs/mbbsd/board.c
index 97fb598b..9489b65a 100644
--- a/pttbbs/mbbsd/board.c
+++ b/pttbbs/mbbsd/board.c
@@ -262,7 +262,7 @@ b_posttype()
if (!isdigit(genbuf[0]))
continue;
i = atoi(genbuf);
- if (i < 0 || i >= 8)
+ if (i < 0 || i > 8)
continue;
while (i > types++)
strlcat(posttype, " ", sizeof(posttype));