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

This commit is contained in:
Daniel Stenberg 2003-10-28 09:17:15 +00:00
parent ba12c5deda
commit 1cdc66d927

View File

@ -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);
}
}