summaryrefslogtreecommitdiff
path: root/buffer.cpp
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2008-02-25 19:00:43 +0000
committerChristian Pointner <equinox@anytun.org>2008-02-25 19:00:43 +0000
commit619dec51f630116843a7d83c0c085abc7e3da688 (patch)
tree89536dff865336963d12ae7a3a5292509616c126 /buffer.cpp
parentbugfix with packet length (diff)
fixed resize issue with buffer->xPacket
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;