From: Nicolas Pitre Date: Tue, 08 Jan 2008 20:44:49 GMT Subject: Re: [PATCH 1/2] sideband.c: Use xmalloc() instead of variable-sized arrays. Message-ID: 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