[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: io:lines() and \0
- From: Sean Conner <sean@...>
- Date: Wed, 19 Feb 2014 12:45:39 -0500
It was thus said that the Great Craig Barnes once stated:
> On 19 February 2014 16:41, René Rebe <email@example.com> wrote:
> > Who said it was impossible? A simple loop fixing this issue was presented by
> > Francisco.
> No one did. It was just in reply to:
> > Amazing how much energy goes into preventing other people to improve something
> Your previous patch looks promising.
It has a bug. If the "line" read in is LUAL_BUFFERSIZE bytes (or longer)
in size, *and* the byte *at* LUAL_BUFFERSIZE is 0, then the routine returns
a corrupted line.
-spc (It's not a matter if "if", it's only a matter of "when")