From: Jon Steinhart Date: Tue, 12 Oct 2004 21:14:02 +0000 (+0000) Subject: Fixed another weird bug caused by the static mailpath being overwritten. X-Git-Tag: RELEASE_1_2~60 X-Git-Url: http://git.marmaro.de/?p=mmh;a=commitdiff_plain;h=24414198cc168516126761a3040b71087c5778bc;ds=sidebyside Fixed another weird bug caused by the static mailpath being overwritten. --- diff --git a/uip/inc.c b/uip/inc.c index 02a2cbf..864574b 100644 --- a/uip/inc.c +++ b/uip/inc.c @@ -534,6 +534,11 @@ main (int argc, char **argv) } if (stat (newmail, &s1) == NOTOK || s1.st_size == 0) adios (NULL, "no mail to incorporate"); + + if ((cp = strdup(newmail)) == (char *)0) + adios (maildir, "error allocating memory to copy newmail"); + + newmail = cp; } #ifdef POP