diff options
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/announce.c | 1 | ||||
-rw-r--r-- | mbbsd/chess.c | 1 | ||||
-rw-r--r-- | mbbsd/screen.c | 2 |
3 files changed, 4 insertions, 0 deletions
diff --git a/mbbsd/announce.c b/mbbsd/announce.c index 81944e9e..38648623 100644 --- a/mbbsd/announce.c +++ b/mbbsd/announce.c @@ -174,6 +174,7 @@ a_loadname(menu_t * pm) setadir(buf, pm->path); len = get_records(buf, pm->header, FHSZ, pm->page + 1, pm->header_size); // XXX if get_records() return -1 + assert(len!=-1); if (len < pm->header_size) bzero(&pm->header[len], FHSZ * (pm->header_size - len)); } diff --git a/mbbsd/chess.c b/mbbsd/chess.c index 26f82354..8606d652 100644 --- a/mbbsd/chess.c +++ b/mbbsd/chess.c @@ -859,6 +859,7 @@ ChessWatchRequest(int sig) if (sock < 0) return; + assert(CurrentPlayingGameInfo); node = ChessBroadcastListInsert(&CurrentPlayingGameInfo->broadcast_list); node->sock = sock; diff --git a/mbbsd/screen.c b/mbbsd/screen.c index c0a389f2..9eabb276 100644 --- a/mbbsd/screen.c +++ b/mbbsd/screen.c @@ -27,6 +27,8 @@ initscr(void) void move(int y, int x) { + assert(y>=0); + assert(x>=0); cur_col = x; cur_ln = y; } |