summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-08-08 12:31:01 -0700
committerJunio C Hamano <gitster@pobox.com>2011-08-08 12:31:01 -0700
commit0d086b8e33820d7cf87386a912e2939c59822f35 (patch)
tree0a44aa5d8e45705f4c3fcc565a96eb6107a39ba1
parent90a6c7d443058e8ad3eb36d21f4ede99addbca61 (diff)
downloadgit-0d086b8e33820d7cf87386a912e2939c59822f35.tar.gz
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>
-rw-r--r--builtin/receive-pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/receive-pack.c b/builtin/receive-pack.c
index fca26fb5fb..0d51bfb79e 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";