On Thu, 13 May 2010, Hans-Christoph Steiner wrote:
On May 12, 2010, at 1:43 PM, Mathieu Bouchard wrote:
Instead of removing the line, try prepending it with : buf = resizebytes(buf, bufsize+1, bufsize); (I hope I didn't make any mistake there... but looks ok to me now).
Shouldn't this work instead: buf[bufsize-1] = 0;
it doesn't crash, but it removes the last character from the string, so, it doesn't work.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801