]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/socket.cpp
directory for message catalogs
[wxWidgets.git] / src / common / socket.cpp
index 56c601c617765577035866db3ca02cb0673bbef5..9d3dffd7894a788d5a7a1ae196bdfed472638067 100644 (file)
@@ -358,6 +358,7 @@ bool wxSocketBase::Close()
 wxSocketBase& wxSocketBase::Read(char* buffer, size_t nbytes)
 {
   m_lcount = GetPushback(buffer, nbytes, FALSE);
 wxSocketBase& wxSocketBase::Read(char* buffer, size_t nbytes)
 {
   m_lcount = GetPushback(buffer, nbytes, FALSE);
+  nbytes -= m_lcount;
 
   // If we have got the whole needed buffer or if we don't want to
   // wait then it returns immediately.
 
   // If we have got the whole needed buffer or if we don't want to
   // wait then it returns immediately.