X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-verify-pack.c;h=7d39d9bcd178a65686d6757f8a89065d25f55b23;hb=b81ba571242a1b64b4fbda215ea38dd062f2b05f;hp=d700761e15e5785b8f17b161d5f45925112a214c;hpb=2e3ed670eb09feffe847af55db38da3dcecc2a88;p=git.git diff --git a/builtin-verify-pack.c b/builtin-verify-pack.c index d700761e1..7d39d9bcd 100644 --- a/builtin-verify-pack.c +++ b/builtin-verify-pack.c @@ -17,10 +17,10 @@ static int verify_one_pack(const char *path, int verbose) * In addition to "foo.idx" we accept "foo.pack" and "foo"; * normalize these forms to "foo.idx" for add_packed_git(). */ - if (has_extension(arg, len, ".pack")) { + if (has_extension(arg, ".pack")) { strcpy(arg + len - 5, ".idx"); len--; - } else if (!has_extension(arg, len, ".idx")) { + } else if (!has_extension(arg, ".idx")) { if (len + 4 >= PATH_MAX) return error("name too long: %s.idx", arg); strcpy(arg + len, ".idx");