summaryrefslogtreecommitdiff
path: root/syncClientSocket.cpp
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-02-28 22:33:16 +0000
committerOthmar Gsenger <otti@anytun.org>2008-02-28 22:33:16 +0000
commit5962cd2e8dc2c41b121717fd0cf52bbee04729ec (patch)
treea41f501dfbc4ce986997bc0037c10c523cd69ba9 /syncClientSocket.cpp
parentfix (diff)
changed types
Diffstat (limited to 'syncClientSocket.cpp')
-rw-r--r--syncClientSocket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/syncClientSocket.cpp b/syncClientSocket.cpp
index 8d1da61..c68586a 100644
--- a/syncClientSocket.cpp
+++ b/syncClientSocket.cpp
@@ -59,7 +59,7 @@ void SyncClientSocket::OnRawData(const char *buf,size_t len)
cLog.msg(Log::PRIO_NOTICE) << "recieved sync inforamtaion from " << GetRemoteHostname() <<" "<<tmp.str()<<"bytes of data"<< std::endl;
delete buffer;
} else
- if(missing_chars>0 && missing_chars<=static_cast<int16_t>(iss_.str().length()))
+ if(missing_chars>0 && missing_chars<=static_cast<int32_t>(iss_.str().length()))
{
char * buffer = new char [missing_chars];
iss_.read(buffer,missing_chars);