diff options
author | Christian Pointner <equinox@anytun.org> | 2009-01-16 15:49:42 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2009-01-16 15:49:42 +0000 |
commit | 88a0ecb3917a38ef5edf95f302b9aed1b71ef36d (patch) | |
tree | f1b46011a80d594349c2fbc5ef1d3563cdaa74c8 /src/buffer.cpp | |
parent | small cleanup (diff) |
added Log to stdout
added dummy stdio tun device
some cleanups (windows)
Diffstat (limited to 'src/buffer.cpp')
-rw-r--r-- | src/buffer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.cpp b/src/buffer.cpp index 8e7bf98..2597845 100644 --- a/src/buffer.cpp +++ b/src/buffer.cpp @@ -73,7 +73,7 @@ Buffer::Buffer(u_int8_t* data, u_int32_t length, bool allow_realloc) : length_(l std::memcpy(buf_, data, length_); } -Buffer::Buffer(std::string hex_data, bool allow_realloc) : length_(hex_data.size()/2), +Buffer::Buffer(std::string hex_data, bool allow_realloc) : length_(static_cast<u_int32_t>(hex_data.size())/2), real_length_(length_ + Buffer::OVER_SIZE_), allow_realloc_(allow_realloc) { |