Index: diff/io.c =================================================================== RCS file: /cvs/ccvs/diff/io.c,v retrieving revision 1.3 diff -u -r1.3 io.c --- diff/io.c 7 Aug 2001 15:35:52 -0000 1.3 +++ diff/io.c 12 Jul 2003 18:11:03 -0000 @@ -508,11 +508,10 @@ 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; }