summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-06-27 00:27:12 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-06-27 00:27:12 +0800
commitf6b90669cfc8bc390214ab81fa75dc52a1ffd47b (patch)
tree382f371cca01d3c4978bfe04e36967ed466a374f
parentb22ac35885eeb1e51b098a49cfd89aeeb71439b9 (diff)
downloadpttbbs-f6b90669cfc8bc390214ab81fa75dc52a1ffd47b.tar
pttbbs-f6b90669cfc8bc390214ab81fa75dc52a1ffd47b.tar.gz
pttbbs-f6b90669cfc8bc390214ab81fa75dc52a1ffd47b.tar.bz2
pttbbs-f6b90669cfc8bc390214ab81fa75dc52a1ffd47b.tar.lz
pttbbs-f6b90669cfc8bc390214ab81fa75dc52a1ffd47b.tar.xz
pttbbs-f6b90669cfc8bc390214ab81fa75dc52a1ffd47b.tar.zst
pttbbs-f6b90669cfc8bc390214ab81fa75dc52a1ffd47b.zip
add one assert() line
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@975 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/read.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/read.c b/mbbsd/read.c
index e6620cb4..7ec54a9d 100644
--- a/mbbsd/read.c
+++ b/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;