Skip to content

Commit 0d086b8

Browse files
committed
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 <[email protected]>
1 parent 90a6c7d commit 0d086b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/receive-pack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ static const char *unpack(int quiet)
651651

652652
if (ntohl(hdr.hdr_entries) < unpack_limit) {
653653
int code, i = 0;
654-
const char *unpacker[4];
654+
const char *unpacker[5];
655655
unpacker[i++] = "unpack-objects";
656656
if (quiet)
657657
unpacker[i++] = "-q";

0 commit comments

Comments
 (0)