cvs: php3 /win32/ sendmail.c

From: Date: Sun, 21 May 2000 20:58:50 +0000
Subject: cvs: php3 /win32/ sendmail.c
Groups: php.dev 
Request: Send a blank email to php-dev+get-19083@lists.php.net to get a copy of this message
jimw Sun May 21 22:58:50 2000 EDT Modified files: /php3/win32 sendmail.c Log: don't crash when no extra headers are supplied Index: php3/win32/sendmail.c diff -u php3/win32/sendmail.c:1.28 php3/win32/sendmail.c:1.29 --- php3/win32/sendmail.c:1.28 Sun Dec 26 19:44:50 1999 +++ php3/win32/sendmail.c Sun May 21 22:58:50 2000 @@ -1,4 +1,4 @@ -/* $Id: sendmail.c,v 1.28 1999/12/26 18:44:50 rasmus Exp $ */ +/* $Id: sendmail.c,v 1.29 2000/05/21 20:58:50 jimw Exp $ */ /* * PHP Sendmail for Windows. @@ -250,7 +250,7 @@ // Send mail to all Cc rcpt's efree(tempMailTo); - if (pos1 = strstr(headers, "Cc:")) { + if (headers && pos1 = strstr(headers, "Cc:")) { pos2 = strstr(pos1, "\r\n"); tempMailTo = estrndup(pos1, pos2-pos1);

« previous php.dev (#19083) next »