OSDN Git Service

diffutils/src/util.c: Fix wrong type cast. This bug causes unexpected diff result...
authorsdottaka <sdottaka@sourceforge.net>
Thu, 27 Mar 2014 16:59:28 +0000 (01:59 +0900)
committersdottaka <sdottaka@sourceforge.net>
Thu, 27 Mar 2014 16:59:28 +0000 (01:59 +0900)
--HG--
branch : stable

Src/diffutils/src/util.c

index 2d7ebf9..3b8a1c2 100644 (file)
@@ -389,7 +389,7 @@ line_cmp (s1, len1, s2, len2)
                  /* Any whitespace sequence counts as one space */
                  c1 = ' ';
                  /* Skip to end of whitespace sequence */
-                 while (t1-(unsigned char)s1<(int)len1 && ISWSPACE(*t1))
+                 while (t1-(unsigned char *)s1<(int)len1 && ISWSPACE(*t1))
                    ++t1;
                  /* if c1 is whitespace and c2 is end of line
                  we must advance c1 to next char, because c1