--- trunk/stream.c 2008/05/07 04:21:22 92 +++ trunk/stream.c 2008/05/21 23:50:08 100 @@ -59,7 +59,7 @@ } if (new_capacity != stream->capacity) { - stream->data = xrealloc(stream->data, stream->capacity); + stream->data = xrealloc(stream->data, new_capacity); stream->capacity = new_capacity; }