summaryrefslogtreecommitdiff
path: root/buffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'buffer.cpp')
-rw-r--r--buffer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/buffer.cpp b/buffer.cpp
index cea8d2c..91ad950 100644
--- a/buffer.cpp
+++ b/buffer.cpp
@@ -161,6 +161,8 @@ void Buffer::setLength(u_int32_t new_length)
old_buf = &buf_[old_length];
std::memset(old_buf, 0, real_length_ - old_length);
+
+ reinit();
}
else
length_ = new_length;