diff options
Diffstat (limited to 'index-pack.c')
-rw-r--r-- | index-pack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/index-pack.c b/index-pack.c index f9177442a..48874a052 100644 --- a/index-pack.c +++ b/index-pack.c @@ -855,9 +855,9 @@ int main(int argc, char **argv) fix_thin_pack = 1; } else if (!strcmp(arg, "--keep")) { keep_msg = ""; - } else if (!strncmp(arg, "--keep=", 7)) { + } else if (!prefixcmp(arg, "--keep=")) { keep_msg = arg + 7; - } else if (!strncmp(arg, "--pack_header=", 14)) { + } else if (!prefixcmp(arg, "--pack_header=")) { struct pack_header *hdr; char *c; |