From 24414198cc168516126761a3040b71087c5778bc Mon Sep 17 00:00:00 2001 From: Jon Steinhart Date: Tue, 12 Oct 2004 21:14:02 +0000 Subject: [PATCH] Fixed another weird bug caused by the static mailpath being overwritten. --- uip/inc.c | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 1.7.10.4