X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=inline;f=builtin-apply.c;h=1103625a4a923d92ca8d335d1a872236630541e5;hb=634f246444e6a1675e351f31362e6a375dc44f70;hp=caa3f2aa0ca147091d28013c3d2c11346e350675;hpb=e9dd7518666ae8bfb3d7ddbca1a00c018d2e79e8;p=git.git diff --git a/builtin-apply.c b/builtin-apply.c index caa3f2aa0..1103625a4 100644 --- a/builtin-apply.c +++ b/builtin-apply.c @@ -2247,7 +2247,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(new_name, NULL)) + if (has_symlink_leading_path(strlen(new_name), new_name)) return 0; return error("%s: already exists in working directory", new_name);