Skip to content

Commit

Permalink
receive-pack: do not overstep command line argument array
Browse files Browse the repository at this point in the history
Previous commit added one element to the command line, without
making sure the result fits there.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Aug 8, 2011
1 parent 90a6c7d commit 0d086b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/receive-pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ static const char *unpack(int quiet)

if (ntohl(hdr.hdr_entries) < unpack_limit) {
int code, i = 0;
const char *unpacker[4];
const char *unpacker[5];
unpacker[i++] = "unpack-objects";
if (quiet)
unpacker[i++] = "-q";
Expand Down

0 comments on commit 0d086b8

Please sign in to comment.