wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth/src network_worker.cpp


From: David White
Subject: [Wesnoth-cvs-commits] wesnoth/src network_worker.cpp
Date: Sun, 27 Feb 2005 15:25:53 -0500

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     David White <address@hidden>    05/02/27 20:25:53

Modified files:
        src            : network_worker.cpp 

Log message:
        fixed bug where packets could be corrupted in network transfer

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/network_worker.cpp.diff?tr1=1.18&tr2=1.19&r1=text&r2=text

Patches:
Index: wesnoth/src/network_worker.cpp
diff -u wesnoth/src/network_worker.cpp:1.18 wesnoth/src/network_worker.cpp:1.19
--- wesnoth/src/network_worker.cpp:1.18 Sun Feb 27 18:15:21 2005
+++ wesnoth/src/network_worker.cpp      Sun Feb 27 20:25:53 2005
@@ -74,7 +74,7 @@
        current_transfer_stats.second = len;
 
        while(beg != end) {
-               const int len = SDLNet_TCP_Recv(sock,&buf[0],end - beg);
+               const int len = SDLNet_TCP_Recv(sock,beg,end - beg);
                if(len <= 0) {
                        return SOCKET_ERROR;
                }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]