]> git.marmaro.de Git - mmh/commitdiff
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 fd0cbcc96d98645b986abf0215a3f85db9cf2df7..ea032d24a04f6f073da8a2d98ca5f78b57812cfe 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;
        }
 }