[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: path canonicalization problem (issue #559)

From: Justin Erenkrantz <jerenkrantz_at_ebuilt.com>
Date: 2002-01-22 08:37:42 CET

On Tue, Jan 22, 2002 at 08:29:07AM +0100, Daniel Stenberg wrote:
> On Mon, 21 Jan 2002, Mark Benedetto King wrote:
>
> > strcpy is not guaranteed to work on overlapping regions. It is likely to
> > work when dest < src and extremely unlikely to if dst > src.
> >
> > memmove() would probably be more appropriate in this case.
>
> ... then of course, not all systems *have* memmove()! ;-) SunOS 4 pops to my
> mind.
>
> Ain't portable coding fun?

FWIW, APR handles this for ya by calling bcopy on those lame
platforms. (bcopy is guaranteed to handle overlapping strings.)

Isn't APR fun? =) -- justin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:57 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.