From be9abfcfc8e8210088636f4aa64948b20aaaffba Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Thu, 28 Feb 2008 22:26:42 +0000 Subject: fix --- syncClientSocket.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/syncClientSocket.cpp b/syncClientSocket.cpp index a6f03f4..8d1da61 100644 --- a/syncClientSocket.cpp +++ b/syncClientSocket.cpp @@ -51,10 +51,10 @@ void SyncClientSocket::OnRawData(const char *buf,size_t len) { if(missing_chars==-1 && iss_.str().length()>5) { - char * buffer = new char [missing_chars]; - iss_.read(buffer,missing_chars); + char * buffer = new char [6]; + iss_.read(buffer,6); std::stringstream tmp; - tmp.write(buffer,missing_chars); + tmp.write(buffer,6); tmp>>missing_chars; cLog.msg(Log::PRIO_NOTICE) << "recieved sync inforamtaion from " << GetRemoteHostname() <<" "<