summaryrefslogtreecommitdiff
path: root/syncClientSocket.cpp
diff options
context:
space:
mode:
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);