summaryrefslogtreecommitdiffstats
path: root/mbbsd/announce.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-04-21 18:21:40 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-04-21 18:21:40 +0800
commitb0479303365152f025e00278c41df638c387298f (patch)
treee0f2d1f1702116dc3fa3e77dcfb9c3d9122101a1 /mbbsd/announce.c
parent2d8ee1c78013c104374613d064565aa7e14c4f2a (diff)
downloadpttbbs-b0479303365152f025e00278c41df638c387298f.tar
pttbbs-b0479303365152f025e00278c41df638c387298f.tar.gz
pttbbs-b0479303365152f025e00278c41df638c387298f.tar.bz2
pttbbs-b0479303365152f025e00278c41df638c387298f.tar.lz
pttbbs-b0479303365152f025e00278c41df638c387298f.tar.xz
pttbbs-b0479303365152f025e00278c41df638c387298f.tar.zst
pttbbs-b0479303365152f025e00278c41df638c387298f.zip
fix sigsegv when user reading articles in man and crossed pages
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2707 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/announce.c')
-rw-r--r--mbbsd/announce.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mbbsd/announce.c b/mbbsd/announce.c
index edd12c95..60d49a9e 100644
--- a/mbbsd/announce.c
+++ b/mbbsd/announce.c
@@ -920,6 +920,9 @@ a_menu(const char *maintitle, char *path, int lastlevel, char *trans_buffer)
me.now = me.num - 1;
break;
}
+ /* piaip: we only load p_lines pages */
+ if (me.now - me.page >= p_lines)
+ berak;
} else
break;
if (!isvisible_man(&me))