From 5962cd2e8dc2c41b121717fd0cf52bbee04729ec Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Thu, 28 Feb 2008 22:33:16 +0000 Subject: changed types --- syncClientSocket.cpp | 2 +- syncClientSocket.h | 2 +- 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() <<" "<0 && missing_chars<=static_cast(iss_.str().length())) + if(missing_chars>0 && missing_chars<=static_cast(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; }; -- cgit v1.2.3