diff --git a/diff.c b/diff.c index 566419dc75..6f12212134 100644 --- a/diff.c +++ b/diff.c @@ -865,7 +865,7 @@ static int cmp_in_block_with_wsd(const struct diff_options *o, al -= wslen; } - if (strcmp(a, c)) + if (al != cl || memcmp(a, c, al)) return 1; return 0;