diff options
author | peter <peter@FreeBSD.org> | 2004-04-15 01:01:56 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2004-04-15 01:01:56 +0000 |
commit | 3aa249bff61808355fd6b864b94fd531fd00b3b7 (patch) | |
tree | 48f5bc180abb032c255cbad668a4838647de32f2 /contrib/cvs/diff/io.c | |
parent | dfd3c578a82a6f926669c53ec72c55f7aba93228 (diff) | |
parent | 6045cae71a438a752980a395f03717a13cc22179 (diff) | |
download | FreeBSD-src-3aa249bff61808355fd6b864b94fd531fd00b3b7.zip FreeBSD-src-3aa249bff61808355fd6b864b94fd531fd00b3b7.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r128266,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib/cvs/diff/io.c')
-rw-r--r-- | contrib/cvs/diff/io.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/cvs/diff/io.c b/contrib/cvs/diff/io.c index 9eb2d5d..31581cd 100644 --- a/contrib/cvs/diff/io.c +++ b/contrib/cvs/diff/io.c @@ -508,11 +508,10 @@ find_identical_ends (filevec) beg0 = filevec[0].prefix_end + (n0 < n1 ? 0 : n0 - n1); /* Scan back until chars don't match or we reach that point. */ - while (p0 != beg0) - if (*--p0 != *--p1) + for (; p0 != beg0; p0--, p1--) + if (*p0 != *p1) { /* Point at the first char of the matching suffix. */ - ++p0, ++p1; beg0 = p0; break; } |