diff options
-rw-r--r-- | pttbbs/mbbsd/board.c | 2 |
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)); |