[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: Mark Benedetto King <bking_at_answerfriend.com>
Date: 2002-01-22 00:20:47 CET

On Mon, Jan 21, 2002 at 05:54:28PM -0500, Garrett Rooney wrote:
> On Mon, Jan 21, 2002 at 10:44:01PM +0000, Philip Martin wrote:
> > Garrett Rooney <rooneg@electricjellyfish.net> writes:
> >
>
> true...
>
> > > + strcpy (tmp, tmp + 1);

Sorry to respond to a response to a response, but I missed this in the
original commit:

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.

--ben

---------------------------------------------------------------------
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.