summaryrefslogtreecommitdiff
path: root/src/buffer.cpp
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-11-28 17:53:09 +0000
committerOthmar Gsenger <otti@anytun.org>2008-11-28 17:53:09 +0000
commit8a024eba12f15556a0d28ba81439b056dfe9d5eb (patch)
tree65081ee7fdb6b217cbd9f6b62b3095d8c734f382 /src/buffer.cpp
parentadded compile time options NOCRYPT,NODAEMON,NOEXEC for easyier windows porting (diff)
some more type cleanups and missig NOCRYPT defines
Diffstat (limited to 'src/buffer.cpp')
-rw-r--r--src/buffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.cpp b/src/buffer.cpp
index 23228eb..7a05ce2 100644
--- a/src/buffer.cpp
+++ b/src/buffer.cpp
@@ -86,7 +86,7 @@ Buffer::Buffer(std::string hex_data, bool allow_realloc) : length_(hex_data.size
for(u_int32_t i=0; i<length_; ++i)
{
- u_int32_t tmp;
+ u_int8_t tmp;
std::istringstream ss(std::string(hex_data.c_str(), i*2, 2));
if(!(ss >> std::hex >> tmp)) tmp = 0;
buf_[i] = tmp;