aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/FreeWnn-server/files/patch-cd
blob: 492f3fe1806c1a0aacbe577fb0e690153808cc06 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- Wnn/jlib/js.c~  Thu Mar  9 16:34:55 2000
+++ Wnn/jlib/js.c   Thu Mar  9 16:49:51 2000
@@ -325,7 +325,10 @@
 char *pserver;
 {
     register char *p;
-    strcpy(pserver, server);
+    /* Workaround for pserver buffer overrun : Nov 11,1999 by T.Aono */
+    /* assumes pserver[64]. variable length string is not supported. */
+    strncpy(pserver, server, 64 - 1);
+    pserver[64 - 1] = '\0';
     p = pserver;
     for( ; *p && *p != ':'; p++) ;
     if (!*p) return(0);    /* does not have a colon */