--- sio_fd.c 2002/11/05 16:05:25 1.5 +++ sio_fd.c 2002/11/05 16:18:46 1.6 @@ -94,6 +94,9 @@ size_t n; n = buf->size; + if (n == 0) + return SIO_ERR_ARG; + p = realloc(buf->mem, n); if (p != NULL) buf->mem = p;
CVSTrac 2.0.1