Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
receive-pack: do not overstep command line argument array
[gitweb.git]
/
builtin
/
receive-pack.c
diff --git
a/builtin/receive-pack.c
b/builtin/receive-pack.c
index fca26fb5fbfb7c33f7a2c77b6301b501db5e9737..0d51bfb79eb3e8b234ca4ee98844de20d46503b6 100644
(file)
--- 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";