Re: [PATCH 1/2] sideband.c: Use xmalloc() instead of variable-sized arrays.
- From
Nicolas Pitre <nico@cam.org>
- Date
- Jan 8, 2008, 20:44 UTC
- Message-ID
- <alpine.LFD.1.00.0801081526230.3054@xanadu.home>
- In-Reply-To
- <7v7iikrs86.fsf@gitster.siamese.dyndns.org>
On Tue, 8 Jan 2008, Junio C Hamano wrote:
> How about using a constant large enough slop? It is not like > PREFIX and SUFFIX are different vastly between calls.
The size of the buffer is certainly bounded since the prefix length is constant, the buffer size is constant, and both possible suffixes are also constants.
Nicolas