From: <sv...@ww...> - 2004-05-10 04:35:52
|
Author: wolverine Date: 2004-05-08 07:32:32 -0700 (Sat, 08 May 2004) New Revision: 946 Modified: trunk/CSP/CSPSim/Source/Networking/MessageSocketDuplex.cpp Log: fixed a compile problem. need to have header len be a static constant someplace to really fix this problem. Modified: trunk/CSP/CSPSim/Source/Networking/MessageSocketDuplex.cpp =================================================================== --- trunk/CSP/CSPSim/Source/Networking/MessageSocketDuplex.cpp 2004-05-08 14:26:40 UTC (rev 945) +++ trunk/CSP/CSPSim/Source/Networking/MessageSocketDuplex.cpp 2004-05-08 14:32:32 UTC (rev 946) @@ -127,7 +127,7 @@ // peek at packet to verify this is a valid CSP packet. and if so get the packet type. int headerlen = 6; - uint16 headerBuffer[headerlen]; + uint16 headerBuffer[6]; int numHeaderBytes = m_UDPReceiverSocket->peek(headerBuffer, headerlen); // TODO validation of header |