From 8a7f8f8f99d5573945b0f58770d77019a1008782 Mon Sep 17 00:00:00 2001 From: sc Date: Fri, 22 Dec 2000 10:17:16 +0000 Subject: Fixed old bug in initialisation of MaxSize --- comm/MsgBuffer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'comm/MsgBuffer.cc') diff --git a/comm/MsgBuffer.cc b/comm/MsgBuffer.cc index 07ca341..f1dbeda 100644 --- a/comm/MsgBuffer.cc +++ b/comm/MsgBuffer.cc @@ -139,7 +139,7 @@ IvlMsgBuffer :: Clear () } /*? -Insure that a IvlMsgBuffer.has at least \var{sz} free bytes. +Insure that an IvlMsgBuffer has at least \var{sz} free bytes. The buffer may be reallocated with a new size to provide the necessary space. ?*/ void @@ -231,7 +231,7 @@ IvlMsgBuffer :: SetSizes (int min, int grow, int max) if (grow >= 0) GrowSize = pad (grow); if (max >= 0) - MaxSize = pad (grow); + MaxSize = pad (max); if (min == 0) MinSize = 128; if (grow == 0) -- cgit v1.1