Re: Default Return-Path with mail() and qmail
| From: | Daniel Lorch | Date: | Sat, 07 Dec 2002 16:07:53 +0000 |
| Subject: | Re: Default Return-Path with mail() and qmail | ||
| References: | 1 2 3 4 5 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-92188@lists.php.net to get a copy of this message | ||
Hi Andi,
> Are you sure you should be using malloc()/free() and not emalloc()/efree()?
> Also please use strlcpy() instead of strncpy(). (Weird I mentioned it twice
> in one day :)
> http://www.courtesan.com/todd/papers/strlcpy.html
Probably there are even more things broken in my patch :) I'm quite new to C
and I'm happy it works without segfaulting. strlcpy looks interesting and
I'll read through the link as soon as I find some free time.
Oh, this patch is explicitly *NOT* meant to go into the main branch. It's
just an additional patch for whoever needs it, sorry for not pointing this
out more explicitly.
-daniel