CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: David White <[EMAIL PROTECTED]> 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;
}