summaryrefslogtreecommitdiff
path: root/zen/serialize.h
diff options
context:
space:
mode:
Diffstat (limited to 'zen/serialize.h')
-rw-r--r--zen/serialize.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/zen/serialize.h b/zen/serialize.h
index 982165f9..415bd430 100644
--- a/zen/serialize.h
+++ b/zen/serialize.h
@@ -167,7 +167,7 @@ BinContainer loadBinStream(const Zstring& filename) //throw FileError, ErrorNotE
const size_t blockSize = 128 * 1024;
do
{
- contOut.resize(contOut.size() + blockSize);
+ contOut.resize(contOut.size() + blockSize); //container better implement exponential growth!
const size_t bytesRead = fileIn.read(&*contOut.begin() + contOut.size() - blockSize, blockSize); //throw FileError
if (bytesRead < blockSize)
bgstack15