* 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:20:16 +0000 (18:20 +0200)
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);