diff --git a/client.h b/client.h index 02082d2..37995f5 100644 --- a/client.h +++ b/client.h @@ -74,7 +74,7 @@ class Client return; const size_t newBufSize = writeBufsize + add_size; - writebuf = (char*)realloc(readbuf, newBufSize); + writebuf = (char*)realloc(writebuf, newBufSize); writeBufsize = newBufSize; }