On Wed, Feb 01, 2017 at 03:25:30PM +0100, Stefan Sperling wrote: > On Tue, Jan 31, 2017 at 04:22:24PM +0100, Martijn van Duren wrote: > > Here's a patch to allocate memory in chunks of 1024. > > This value arbitrarily chosen. > > > > It still won't save you if your input is 99999999 lines long, > > but it will safe you in this use case. > > > > martijn@ > > OK by me.
Oh, just one nit: Please put spaces around the + operator in this line:
bzero(lines+recno, nlineno - lineno);
