Re: Re: Default Return-Path with mail() and qmail
| From: | Derick Rethans | Date: | Mon, 09 Dec 2002 08:55:54 +0000 |
| Subject: | Re: Re: Default Return-Path with mail() and qmail | ||
| References: | 1 2 3 4 5 6 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-92234@lists.php.net to get a copy of this message | ||
On Sat, 7 Dec 2002, Daniel Lorch wrote:
> 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.
If it would be going into CVS I think we need some way to not always
have this on.
Derick
--
-------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
PHP Magazine - PHP Magazine for Professionals http://php-mag.net/
-------------------------------------------------------------------------