Looking good to me, but: On Sat, Mar 27, 2010 at 1:49 AM, <[email protected]> wrote: > From: Nathan Kinsinger <[email protected]> > > After the last line is read from the fileDescriptor the callee will call > readLine once last time. If the (uninitialized) buffer just happened to > contain '\r' then this method would increment bytesReceived, then decrement > it (because it has '\r' in it), then decrement it agin and assign a null byte > to the byte before the buffer (stepping on who knows what). Then it would > return the '\r'. Then, since it received something, the callee would call > readLine again, malloc would give the same buffer it did before (with the > '\r') and everything would repeat.
you should line-wrap this commit message To unsubscribe from this group, send email to gitx+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
