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

Re: CVS update: subversion/subversion/libsvn_subr path.c

From: Karl Fogel <kfogel_at_galois.collab.net>
Date: 2001-02-12 15:31:54 CET

kevin@tigris.org writes:
> Log:
> Fixed a minor fencepost error, that was causing two null terminators if
> it reached the end of a string.

Thank you! (My bad, I think.)

-K

> Revision Changes Path
> 1.31 +2 -2 subversion/subversion/libsvn_subr/path.c
>
> Index: path.c
> ===================================================================
> RCS file: /cvs/subversion/subversion/libsvn_subr/path.c,v
> retrieving revision 1.30
> retrieving revision 1.31
> diff -u -r1.30 -r1.31
> --- path.c 2001/02/05 03:06:35 1.30
> +++ path.c 2001/02/12 16:53:23 1.31
> @@ -235,9 +235,9 @@
>
> while (path1->data[i] == path2->data[i])
> {
> - i++;
> - if ((i > path1->len) || (i > path2->len))
> + if ((i == path1->len) || (i == path2->len))
> break;
> + i++;
> }
>
> /* i is now the offset of the first _non_-matching byte. */
>
>
>
Received on Sat Oct 21 14:36:22 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.