Commit 1cdc66d9 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

overlapping memory chunks with strcpy(), detected by the friendly valgrind

parent ba12c5de
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2035,7 +2035,8 @@ static CURLcode CreateConnection(struct SessionHandle *data,
             used truly as a separator */
          ptr++;

        strcpy(conn->path, ptr);
        /* This cannot be made with strcpy, as the memory chunks overlap! */
        memmove(conn->path, ptr, strlen(ptr)+1);
      }
    }