Update of /cvsroot/netrek/client/netrekxp/src In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv6648 Modified Files: socket.c Log Message: fix generic 32 handling Index: socket.c =================================================================== RCS file: /cvsroot/netrek/client/netrekxp/src/socket.c,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- socket.c 13 Dec 2006 09:03:01 -0000 1.13 +++ socket.c 13 Dec 2006 23:47:15 -0000 1.14 @@ -2365,20 +2365,18 @@ void handleGeneric32 (struct generic_32_spacket *packet) { - char version; -// char unused; - if (sizeof(*packet) != GENERIC_32_LENGTH) + if (sizeof(struct generic_32_spacket) != GENERIC_32_LENGTH) { #ifdef DEBUG - LineToConsole("Generic32 packet length of %d, ignoring packet.\n", sizeof(*packet)); + LineToConsole("Generic32 packet length of %d, ignoring packet.\n", sizeof(struct generic_32_spacket)); #endif return; } - version = packet->version; + if (packet->version < 'a') return; me->p_repair_time = packet->repair_time; me->pl_orbit = packet->pl_orbit; - // unused = packet->pad1; + if (packet->version < 'b') return; } #ifdef RSA