提交 0d086b8e 编写于 作者: J Junio C Hamano

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: NJunio C Hamano <gitster@pobox.com>
上级 90a6c7d4
...@@ -651,7 +651,7 @@ static const char *unpack(int quiet) ...@@ -651,7 +651,7 @@ static const char *unpack(int quiet)
if (ntohl(hdr.hdr_entries) < unpack_limit) { if (ntohl(hdr.hdr_entries) < unpack_limit) {
int code, i = 0; int code, i = 0;
const char *unpacker[4]; const char *unpacker[5];
unpacker[i++] = "unpack-objects"; unpacker[i++] = "unpack-objects";
if (quiet) if (quiet)
unpacker[i++] = "-q"; unpacker[i++] = "-q";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册