summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--syncClientSocket.cpp2
-rw-r--r--syncClientSocket.h2
2 files changed, 2 insertions, 2 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);
diff --git a/syncClientSocket.h b/syncClientSocket.h
index 432657a..e85b7cf 100644
--- a/syncClientSocket.h
+++ b/syncClientSocket.h
@@ -26,7 +26,7 @@ public:
private:
ConnectionList & cl_;
std::stringstream iss_;
- int16_t missing_chars;
+ int32_t missing_chars;
};