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