[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: Daniel Stenberg <daniel_at_haxx.se>
Date: 2002-01-22 08:29:07 CET

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?

-- 
      Daniel Stenberg - http://daniel.haxx.se - +46-705-44 31 77
   ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
---------------------------------------------------------------------
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.