X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=diff-lib.c;h=a310fb2ad08cfb5fac01f5519e8b95b2338b07db;hb=9d5b05c6d56a0fb12d43d50d7853178feaf59daa;hp=79d06068344f5a602f6c8799f6671ccbf98cf49c;hpb=25487f8e2ae266936df0f807ae79dca41606e404;p=~andy%2Fgit diff --git a/diff-lib.c b/diff-lib.c index 79d060683..a310fb2ad 100644 --- a/diff-lib.c +++ b/diff-lib.c @@ -31,7 +31,7 @@ static int check_removed(const struct cache_entry *ce, struct stat *st) return -1; return 1; } - if (has_symlink_leading_path(ce_namelen(ce), ce->name)) + if (has_symlink_leading_path(ce->name, ce_namelen(ce))) return 1; if (S_ISDIR(st->st_mode)) { unsigned char sub[20];