Revert "Removed the "fix_scrollbarbug" div and all references to it."
[citadel.git] / webcit / smtpqueue.c
index f45b158b980a8507a6b64c62c13b74743212f9de..c73e9a25613502cb228768a58cde1414679e8044 100644 (file)
@@ -199,7 +199,7 @@ void display_smtpqueue_inner_div(void) {
                        wc_printf(_("Recipients"));
                        wc_printf("</i></b></td></tr>\n");
 
-                       for (i=0; i<num_msgs; ++i) {
+                       for (i=0; (i < num_msgs) && (i < Stat.maxload); ++i) {
                                Msg = GetMessagePtrAt(i, WCC->summ);
                                if (Msg != NULL) {
                                        display_queue_msg(Msg->msgnum);