allow UDP in buf to expand

This commit is contained in:
Jeff Hill
2000-10-11 19:48:34 +00:00
parent ac2b421401
commit 6bf3771462
+3 -1
View File
@@ -45,7 +45,9 @@ inBuf::inBuf (bufSizeT bufSizeIn, bufSizeT ioMinSizeIn) :
this->ioMinSize = 1;
}
assert (this->bufSize>this->ioMinSize);
if ( this->bufSize < this->ioMinSize ) {
this->bufSize = this->ioMinSize;
}
this->pBuf = new char [this->bufSize];
if (!this->pBuf) {