X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-apply.c;h=106be94105dbff4c150deac7854a50c67ecd974d;hb=0aaaef7b0f83ccd97d586b5c951adcb912af2664;hp=f312798af38553e0badeda9732736a62460eae05;hpb=aff4e8dc217bdde9276e634ea7bf92adf926e573;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);