소스 검색

* Forgot to commit this overlapped strcpy fix

svn: 509
Bryan Drewery 22 년 전
부모
커밋
7623699a67
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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 */