Re: [PATCH 2/4] receive-pack: implement advertising and receiving push options
From: Junio C Hamano <hidden> Date: 2016-07-14 20:07:59
Jeff King [off-list ref] writes:
packet_read() does NUL-terminate for you. It gets the extra bytes
because it doesn't store the 4-byte size in the output (whereas the
client does not ever send anything over LARGE_PACKET_MAX, _including_
those bytes, so we always have room to store its result in our
LARGE_PACKET_MAX buffer, plus the NUL, with 3 bytes to spare).
Good; then the loop will further be simplified ;-)
Thanks.