summaryrefslogtreecommitdiff
path: root/contrib/cvs/diff/io.c
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2004-04-15 01:01:56 +0000
committerPeter Wemm <peter@FreeBSD.org>2004-04-15 01:01:56 +0000
commit10bfecb8b52fe1781d1b496d2b47fff0e15c0806 (patch)
treefd220ac1ddaebaa4a730f86d6f727fb639279056 /contrib/cvs/diff/io.c
parentc8ae5f056296ca06d45a165f9c8588a777b19a89 (diff)
Notes
Diffstat (limited to 'contrib/cvs/diff/io.c')
-rw-r--r--contrib/cvs/diff/io.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/cvs/diff/io.c b/contrib/cvs/diff/io.c
index 9eb2d5d4e976..31581cdb0bbc 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;
}