X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-apply.c;h=106be94105dbff4c150deac7854a50c67ecd974d;hb=ec2956df592338ccd789428e9232fe6b709dc2be;hp=f312798af38553e0badeda9732736a62460eae05;hpb=ba743d1b0ce0b44c797c0de06c9db2781e4d1fdd;p=git.git diff --git a/builtin-apply.c b/builtin-apply.c index f312798af..106be9410 100644 --- a/builtin-apply.c +++ b/builtin-apply.c @@ -2360,7 +2360,7 @@ static int check_to_create_blob(const char *new_name, int ok_if_exists) * In such a case, path "new_name" does not exist as * far as git is concerned. */ - if (has_symlink_leading_path(strlen(new_name), new_name)) + if (has_symlink_leading_path(new_name, strlen(new_name))) return 0; return error("%s: already exists in working directory", new_name);