diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-06-27 00:27:12 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-06-27 00:27:12 +0800 |
commit | 266c1d85db778429fd1bc073a3533643e6f72536 (patch) | |
tree | 99d030b87913b7b7b82233f87b066d9b2a374198 | |
parent | 35cd85c4de01114db3dc42539cbcbcadc5d16625 (diff) | |
download | pttbbs-266c1d85db778429fd1bc073a3533643e6f72536.tar pttbbs-266c1d85db778429fd1bc073a3533643e6f72536.tar.gz pttbbs-266c1d85db778429fd1bc073a3533643e6f72536.tar.bz2 pttbbs-266c1d85db778429fd1bc073a3533643e6f72536.tar.lz pttbbs-266c1d85db778429fd1bc073a3533643e6f72536.tar.xz pttbbs-266c1d85db778429fd1bc073a3533643e6f72536.tar.zst pttbbs-266c1d85db778429fd1bc073a3533643e6f72536.zip |
add one assert() line
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@975 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/read.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/read.c b/pttbbs/mbbsd/read.c index e6620cb4..7ec54a9d 100644 --- a/pttbbs/mbbsd/read.c +++ b/pttbbs/mbbsd/read.c @@ -1,4 +1,4 @@ -/* $Id: read.c,v 1.23 2003/06/22 15:06:00 in2 Exp $ */ +/* $Id: read.c,v 1.24 2003/06/26 16:27:12 kcwu Exp $ */ #include "bbs.h" static fileheader_t *headers = NULL; @@ -882,6 +882,7 @@ i_read(int cmdmode, char *direct, void (*dotitle) (), void (*doentry) (), onekey /* 讀取鍵盤,加以處理,設定 mode */ if (!jump) { + assert(3 + locmem->crs_ln - locmem->top_ln>=0); // FIXME dunno why cursor_show(3 + locmem->crs_ln - locmem->top_ln, 0); ch = egetch(); mode = DONOTHING; |