From: Junio C Hamano Date: Mon, 8 Aug 2011 19:31:01 +0000 (-0700) Subject: receive-pack: do not overstep command line argument array X-Git-Tag: v1.7.6.1~5^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0d086b8e33820d7cf87386a912e2939c59822f35;p=git.git 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 --- diff --git a/builtin/receive-pack.c b/builtin/receive-pack.c index fca26fb5f..0d51bfb79 100644 --- a/builtin/receive-pack.c +++ b/builtin/receive-pack.c @@ -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";