httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@znep.com>
Subject Re: a question
Date Wed, 31 Mar 1999 17:02:28 GMT
On Wed, 31 Mar 1999, Jim Jagielski wrote:

> unknown@riverstyx.net wrote:
> > 
> > I'm wondering, strcpy is replaced by ap_cpystrn (for the various reasons
> > listed in ap_cpystrn.c).  What's the "right" (Apache) way to strcat?  Do
> > y'all care?
> 
> Well, to avoid buffer overflow, you should use strncat if possible. And if
> you need a new string, there's ap_pstrcat

Well... in general you shouldn't be using strcat or strncat or any of that
stuff since it doesn't use pools and no code should do that unless it
should.


Mime
View raw message