Update of /cvsroot/netrek/client/netrekxp/src
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv20924/src

Modified Files:
	distress.c 
Log Message:
distress.c (makedistress): Fixes longstanding bug going back to 1993 where client will crash when macros with a line length >= 80 are sent.
NetrekXP to do list: updated with another feature request

Index: distress.c
===================================================================
RCS file: /cvsroot/netrek/client/netrekxp/src/distress.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- distress.c	26 May 2006 05:58:08 -0000	1.4
+++ distress.c	15 Aug 2006 07:18:31 -0000	1.5
@@ -935,7 +935,9 @@
     buf3[index3] = '\0';
 
     cry[0] = '\0';
-    strncat (cry, buf3, MSG_LEN);
+//  strncat (cry, buf3, MSG_LEN);
+    /* Need room for automatic NULL termination */
+    strncat (cry, buf3, MSG_LEN - 1);
 
     return (index3);
 }