On Wed, 12 May 2010, Mathieu Bouchard wrote:
buf = resizebytes(buf, bufsize+1, bufsize);
indeed, oldsize comes before, not after, so,
buf = resizebytes(buf, bufsize, bufsize+1);
as Hans said.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801