diff options
-rw-r--r-- | syncClientSocket.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/syncClientSocket.cpp b/syncClientSocket.cpp index a0952b6..6b791bc 100644 --- a/syncClientSocket.cpp +++ b/syncClientSocket.cpp @@ -53,7 +53,7 @@ void SyncClientSocket::OnRawData(const char *buf,size_t len) { iss_>>missing_chars; } else - if(missing_chars>0 && missing_chars<=static_cast<int16_t>(iss_.str().size())) + if(missing_chars>0 && missing_chars<static_cast<int16_t>(iss_.str().size())) { char * buffer = new char [missing_chars+1]; iss_.read(buffer,missing_chars+1); |