summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2003-03-22 17:44:28 +0000
committerMarc Laukien <marc@zeroc.com>2003-03-22 17:44:28 +0000
commit1d4649239ea316d240ff466e7436d63c70fbfefa (patch)
treee2c9361da4be0eb77e5710d44baf396b9c8bec25 /cpp/src
parentstarted with opt (diff)
downloadice-1d4649239ea316d240ff466e7436d63c70fbfefa.tar.bz2
ice-1d4649239ea316d240ff466e7436d63c70fbfefa.tar.xz
ice-1d4649239ea316d240ff466e7436d63c70fbfefa.zip
fixes
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/Ice/BasicStream.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpp/src/Ice/BasicStream.cpp b/cpp/src/Ice/BasicStream.cpp
index e50f4234fd3..6c578c74f8f 100644
--- a/cpp/src/Ice/BasicStream.cpp
+++ b/cpp/src/Ice/BasicStream.cpp
@@ -82,6 +82,7 @@ inlineResize(Buffer* buffer, int total)
{
throw MemoryLimitException(__FILE__, __LINE__);
}
+ buffer->b.reserve(max(static_cast<size_t>(total), 2 * buffer->b.capacity()));
buffer->b.resize(total);
}