Update of /cvsroot/netrek/client/cow In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30085 Modified Files: ChangeLog parsemeta.c Log Message: fix sscanf compiler warning Index: parsemeta.c =================================================================== RCS file: /cvsroot/netrek/client/cow/parsemeta.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- parsemeta.c 14 Apr 2006 10:29:40 -0000 1.10 +++ parsemeta.c 14 Apr 2006 10:35:37 -0000 1.11 @@ -1,6 +1,9 @@ /* meta.c * * $Log$ + * Revision 1.11 2006/04/14 10:35:37 quozl + * fix sscanf compiler warning + * * Revision 1.10 2006/04/14 10:29:40 quozl * fix segfault * @@ -241,7 +244,7 @@ /* Is this a line we want? */ - if (sscanf(line, "-h %s -p %d %d %d", + if (sscanf(line, "-h %s -p %d %d %*d", slist->address, &(slist->port), &(slist->age)) != 3) { continue; Index: ChangeLog =================================================================== RCS file: /cvsroot/netrek/client/cow/ChangeLog,v retrieving revision 1.26 retrieving revision 1.27 diff -u -d -r1.26 -r1.27 --- ChangeLog 14 Apr 2006 10:29:40 -0000 1.26 +++ ChangeLog 14 Apr 2006 10:35:37 -0000 1.27 @@ -1,3 +1,10 @@ +Fri Apr 14 20:33:28 2006 James Cameron <quozl at us.netrek.org> + + * parsemeta.c (parseInput): fix format string for sscanf, more + conversion specifiers were present than pointer arguments, + suggesting that the code was trying to check for non-numeric in + place of last specifier. Reported by: Stephen Thorne. + Fri Apr 14 20:26:45 2006 James Cameron <quozl at us.netrek.org> * parsemeta.c (version_r): fix growth of server list.