Update of /cvsroot/playerstage/code/player/libplayertcp
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13996/libplayertcp
Modified Files:
playertcp.cc
Log Message:
Corrected size of TCP buffer allocation after recent dynamic memory method
changes
Index: playertcp.cc
===================================================================
RCS file: /cvsroot/playerstage/code/player/libplayertcp/playertcp.cc,v
retrieving revision 1.58
retrieving revision 1.59
diff -C2 -d -r1.58 -r1.59
*** playertcp.cc 17 Sep 2007 02:18:57 -0000 1.58
--- playertcp.cc 20 Sep 2007 05:34:47 -0000 1.59
***************
*** 574,578 ****
// Make sure there's room in the buffer for the encoded messsage.
// 4 times the message (including dynamic data) is a safe upper bound
! size_t maxsize = PLAYERXDR_MSGHDR_SIZE + (4 * (msg->GetPayloadSize()
+ msg->GetDynDataSize()));
if(maxsize > (size_t)(client->writebuffersize))
{
--- 574,578 ----
// Make sure there's room in the buffer for the encoded messsage.
// 4 times the message (including dynamic data) is a safe upper bound
! size_t maxsize = PLAYERXDR_MSGHDR_SIZE + (4 * msg->GetDynDataSize());
if(maxsize > (size_t)(client->writebuffersize))
{
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit