* the number of messages available are unequal to those in scope of the list.
authorWilfried Goesgens <dothebart@citadel.org>
Thu, 23 Sep 2010 16:20:16 +0000 (18:20 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Thu, 23 Sep 2010 16:38:43 +0000 (18:38 +0200)
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);