Update of /cvsroot/netrek/client/netrekxp/src In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv17480 Modified Files: parsemeta.c Log Message: Fix quozl patch Index: parsemeta.c =================================================================== RCS file: /cvsroot/netrek/client/netrekxp/src/parsemeta.c,v retrieving revision 1.46 retrieving revision 1.47 diff -u -d -r1.46 -r1.47 --- parsemeta.c 7 May 2009 06:52:00 -0000 1.46 +++ parsemeta.c 7 May 2009 22:24:03 -0000 1.47 @@ -355,7 +355,7 @@ char *metaservers; /* our copy of the metaserver host names */ char *token; /* current metaserver host name */ struct sockaddr_in address; /* the address of the metaservers */ - char *req; /* the request packet for the metaserver */ + char req[80]; /* the request packet for the metaserver */ int reqlen; /* the length of the request packet */ /* create the socket */ @@ -372,10 +372,9 @@ closesocket(msock); return 0; } - req = malloc(80); - snprintf(req, 80, "?version=%s %s", version, mvers); - reqlen = strlen(req); } + sprintf(req, "?version=%s %s", version, mvers); + reqlen = strlen(req); /* send request to a multicast metaserver on local area network */ address.sin_family = AF_INET;