summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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))