Fix recipient counting in spost
authorPhilipp Takacs <philipp@bureaucracy.de>
Mon, 3 Oct 2022 23:27:19 +0000 (01:27 +0200)
committerPhilipp Takacs <philipp@bureaucracy.de>
Mon, 3 Oct 2022 23:27:19 +0000 (01:27 +0200)
The wrong variable was added to the recipient count. This could
lead to a to small **argv for exec.

uip/spost.c

index fd0cbcc..ea032d2 100644 (file)
@@ -458,7 +458,7 @@ putfmt(char *name, char *str, FILE *out)
        if (hdr->flags & HTRY) {
                addr_end->m_next = recipients;
                recipients = addr_start.m_next;
-               recipientsc += i;
+               recipientsc += addrc;
        }
 }