Vanilla Development Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS update: Vanilla/ntserv



Date:	Monday February 21, 19100 @ 21:45
Author:	xyzzy

Update of /home/netrek/cvsroot/Vanilla/ntserv
In directory swashbuckler.fortress.real-time.com:/var/tmp/cvs-serv29793

Modified Files:
	solicit.c 
Log Message:
The scanf format for reading the .metaservers file was bad.  Now it is
smarter.


****************************************

Index: Vanilla/ntserv/solicit.c
diff -u Vanilla/ntserv/solicit.c:1.12 Vanilla/ntserv/solicit.c:1.13
--- Vanilla/ntserv/solicit.c:1.12	Wed Jul 14 19:39:09 1999
+++ Vanilla/ntserv/solicit.c	Mon Feb 21 21:45:09 2000
@@ -125,7 +125,7 @@
       if (feof(file)) break;
       
       /* scan the line */
-      fscanf(file, "%s %d %d %d %s %s %d %d %s/n", m->host, &m->port,
+      fscanf(file, "%s %d %d %d %s %s %d %d %[^\n]\n", m->host, &m->port,
 	     &m->minimum, &m->maximum, m->ours, m->type, &m->pport,
 	     &m->oport, m->comment);