Update of /cvsroot/netrek/client/cow
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv18711

Modified Files:
	parsemeta.c 
Log Message:
fix segfault from comment length

Index: parsemeta.c
===================================================================
RCS file: /cvsroot/netrek/client/cow/parsemeta.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- parsemeta.c	27 Nov 2006 00:36:55 -0000	1.12
+++ parsemeta.c	27 Nov 2006 00:40:31 -0000	1.13
@@ -1,6 +1,9 @@
 /* meta.c
  * 
  * $Log$
+ * Revision 1.13  2006/11/27 00:40:31  quozl
+ * fix segfault from comment length
+ *
  * Revision 1.12  2006/11/27 00:36:55  quozl
  * fix segfault from comment length
  *
@@ -1085,7 +1088,7 @@
 
   sp = serverlist + i;
 
-  sprintf(buf, "%-40s %14s ",
+  snprintf(buf, 56, "%-40s %14s ",
           strlen(sp->comment) > 0 ? sp->comment : sp->address,
           statusStrings[sp->status]);