On Tue, Jul 17 2018 13:38:14 -0600, Todd C. Miller wrote:
> On Tue, 17 Jul 2018 13:21:31 -0600, "Todd C. Miller" wrote:
> 
> > It probably makes more sense to do the newline check (and decrement
> > len if one is present) before newsize is computed.  Then you would
> > need to unconditionally NUL-terminate lp->line.
> 
> Perhaps something like this.

you beat me to it, and yours is better (I decremented len before
calculating fpos without thinking) :)

-- 
Lauri Tirkkonen | lotheac @ IRCnet

Reply via email to