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

Re: CVS update: MODIFIED: libsvn_ra_dav ...

From: Joe Orton <joe_at_manyfish.co.uk>
Date: 2001-08-14 18:31:44 CEST

On Tue, Aug 14, 2001 at 11:06:28AM -0500, Karl Fogel wrote:
> > + /* use custom prefix for anything that doesn't start with "svn:" */
> > + if (strncmp(name, "svn:", 4) == 0)
> Greg, should we worry about the case where name < 4 bytes long? It
> seems to me the strncmp() might run off the end, then.

Are you thinking strncmp compares exactly 4 bytes? It compares *at most*
4 bytes, and still terminates on a \0 before that...

joe

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