aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/url.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index 62a4148c7..ac2b6be96 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -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);
}
}