summaryrefslogtreecommitdiff
path: root/syncClientSocket.cpp
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-02-28 22:16:00 +0000
committerOthmar Gsenger <otti@anytun.org>2008-02-28 22:16:00 +0000
commit150701e0ec38eb888343bda1829e7a407a7f50c3 (patch)
tree8a773261eee2fda3bb0d7b716bb7d0704d2a5fda /syncClientSocket.cpp
parentnew sync format in anytun controller (diff)
fixed off by 1 error in sync
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 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);