diff options
author | Marc Laukien <marc@zeroc.com> | 2003-03-22 17:44:28 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2003-03-22 17:44:28 +0000 |
commit | 1d4649239ea316d240ff466e7436d63c70fbfefa (patch) | |
tree | e2c9361da4be0eb77e5710d44baf396b9c8bec25 /cpp/src | |
parent | started with opt (diff) | |
download | ice-1d4649239ea316d240ff466e7436d63c70fbfefa.tar.bz2 ice-1d4649239ea316d240ff466e7436d63c70fbfefa.tar.xz ice-1d4649239ea316d240ff466e7436d63c70fbfefa.zip |
fixes
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/Ice/BasicStream.cpp | 1 |
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); } |