Browse Source

* Forgot to commit this overlapped strcpy fix

svn: 509
Bryan Drewery 22 years ago
parent
commit
7623699a67
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/net.c

+ 2 - 1
src/net.c

@@ -1462,7 +1462,8 @@ int sockgets(char *s, int *len)
   if (p != NULL) {
     *p = 0;
     strcpy(s, xx);
-    strcpy(xx, p + 1);
+//    strcpy(xx, p + 1);
+    sprintf(xx, "%s", p + 1);
     if (s[strlen(s) - 1] == '\r')
       s[strlen(s) - 1] = 0;
     data = 1;			/* DCC_CHAT may now need to process a blank line */