summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-08-08 19:31:01 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-08-08 19:31:01 (GMT)
commit0d086b8e33820d7cf87386a912e2939c59822f35 (patch)
tree0a44aa5d8e45705f4c3fcc565a96eb6107a39ba1 /builtin
parent90a6c7d443058e8ad3eb36d21f4ede99addbca61 (diff)
downloadgit-0d086b8e33820d7cf87386a912e2939c59822f35.zip
git-0d086b8e33820d7cf87386a912e2939c59822f35.tar.gz
git-0d086b8e33820d7cf87386a912e2939c59822f35.tar.bz2
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>
Diffstat (limited to 'builtin')
-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 fca26fb..0d51bfb 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";