[haiku-commits] r33437 - haiku/trunk/src/kits/network/libnetapi

  • From: bga@xxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 5 Oct 2009 12:31:47 +0200 (CEST)

Author: bga
Date: 2009-10-05 12:31:47 +0200 (Mon, 05 Oct 2009)
New Revision: 33437
Changeset: http://dev.haiku-os.org/changeset/33437/haiku

Modified:
   haiku/trunk/src/kits/network/libnetapi/NetEndpoint.cpp
Log:
BnetEndPoint::Send() should use BytesRemaining() as the amount of data to be 
sent, not
Size(). This fixes #4724.



Modified: haiku/trunk/src/kits/network/libnetapi/NetEndpoint.cpp
===================================================================
--- haiku/trunk/src/kits/network/libnetapi/NetEndpoint.cpp      2009-10-05 
09:54:40 UTC (rev 33436)
+++ haiku/trunk/src/kits/network/libnetapi/NetEndpoint.cpp      2009-10-05 
10:31:47 UTC (rev 33437)
@@ -555,7 +555,7 @@
 int32
 BNetEndpoint::Send(BNetBuffer& buffer, int flags)
 {
-       return Send(buffer.Data(), buffer.Size(), flags);
+       return Send(buffer.Data(), buffer.BytesRemaining(), flags);
 }
 
 
@@ -583,7 +583,7 @@
 BNetEndpoint::SendTo(BNetBuffer& buffer,
        const BNetAddress& address, int flags)
 {
-       return SendTo(buffer.Data(), buffer.Size(), address, flags);
+       return SendTo(buffer.Data(), buffer.BytesRemaining(), address, flags);
 }
 
 


Other related posts:

  • » [haiku-commits] r33437 - haiku/trunk/src/kits/network/libnetapi - bga