mirror of
https://github.com/git/git.git
synced 2025-04-18 15:24:25 +00:00
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>
This commit is contained in:
parent
90a6c7d443
commit
0d086b8e33
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user