Update of /cvsroot/playerstage/code/player/libplayertcp
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13705/libplayertcp
Modified Files:
playertcp.cc playerudp.cc
Log Message:
fixed incorrect string length transmission (Thanks to Benji for finding this)
Index: playerudp.cc
===================================================================
RCS file: /cvsroot/playerstage/code/player/libplayertcp/playerudp.cc,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** playerudp.cc 1 Nov 2007 22:16:16 -0000 1.9
--- playerudp.cc 4 Dec 2007 02:28:23 -0000 1.10
***************
*** 958,962 ****
sizeof(devresp.driver_name));
devresp.driver_name[sizeof(devresp.driver_name)-1] = '\0';
! devresp.driver_name_count = strlen(devresp.driver_name);
// (un)subscribe the client to the device
switch(devreq->access)
--- 958,962 ----
sizeof(devresp.driver_name));
devresp.driver_name[sizeof(devresp.driver_name)-1] = '\0';
! devresp.driver_name_count = strlen(devresp.driver_name) + 1;
// (un)subscribe the client to the device
switch(devreq->access)
***************
*** 1105,1109 ****
sizeof(inforesp.driver_name));
inforesp.driver_name[sizeof(inforesp.driver_name)-1] = '\0';
! inforesp.driver_name_count = strlen(device->drivername);
resphdr.type = PLAYER_MSGTYPE_RESP_ACK;
--- 1105,1109 ----
sizeof(inforesp.driver_name));
inforesp.driver_name[sizeof(inforesp.driver_name)-1] = '\0';
! inforesp.driver_name_count = strlen(device->drivername) + 1;
resphdr.type = PLAYER_MSGTYPE_RESP_ACK;
Index: playertcp.cc
===================================================================
RCS file: /cvsroot/playerstage/code/player/libplayertcp/playertcp.cc,v
retrieving revision 1.69
retrieving revision 1.70
diff -C2 -d -r1.69 -r1.70
*** playertcp.cc 2 Nov 2007 18:09:20 -0000 1.69
--- playertcp.cc 4 Dec 2007 02:28:23 -0000 1.70
***************
*** 1052,1056 ****
sizeof(devresp.driver_name));
devresp.driver_name[sizeof(devresp.driver_name)-1] = '\0';
! devresp.driver_name_count = strlen(devresp.driver_name);
// (un)subscribe the client to the device
switch(devreq->access)
--- 1052,1056 ----
sizeof(devresp.driver_name));
devresp.driver_name[sizeof(devresp.driver_name)-1] = '\0';
! devresp.driver_name_count = strlen(devresp.driver_name) + 1;
// (un)subscribe the client to the device
switch(devreq->access)
***************
*** 1198,1202 ****
sizeof(inforesp.driver_name));
inforesp.driver_name[sizeof(inforesp.driver_name)-1] = '\0';
! inforesp.driver_name_count = strlen(device->drivername);
resphdr.type = PLAYER_MSGTYPE_RESP_ACK;
--- 1198,1202 ----
sizeof(inforesp.driver_name));
inforesp.driver_name[sizeof(inforesp.driver_name)-1] = '\0';
! inforesp.driver_name_count = strlen(device->drivername) + 1;
resphdr.type = PLAYER_MSGTYPE_RESP_ACK;
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit