receive-pack: do not overstep command line argument array

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>

Junio C Hamano committed Aug 8, 2011 at 12:31 UTC 0d086b8e33820d7cf87386a912e2939c59822f35
1 file changed +1 -1
builtin/receive-pack.c
+1 -1
@@ -651,7 +651,7 @@ static const char *unpack(int quiet)
651
652 if (ntohl(hdr.hdr_entries) < unpack_limit) {
653 int code, i = 0;
654 - const char *unpacker[4];
654 + const char *unpacker[5];
655 unpacker[i++] = "unpack-objects";
656 if (quiet)
657 unpacker[i++] = "-q";