* the number of messages available are unequal to those in scope of the list.
[citadel.git] / webcit / smtpqueue.c
index 52fee09f99da81d084ebdca0bf1d80fe71364ef1..4da1afbb3977d5b5ce4a499a355263ab47cd8b1f 100644 (file)
@@ -201,7 +201,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);