mirror of
https://github.com/curl/curl.git
synced 2026-08-25 04:23:36 +03:00
ah, move the zero byte too or havoc will occur
This commit is contained in:
parent
f7c5b28e76
commit
22d88fb28e
1 changed files with 2 additions and 2 deletions
|
|
@ -1984,8 +1984,8 @@ static CURLcode CreateConnection(struct SessionHandle *data,
|
|||
if(conn->path[0] == '?') {
|
||||
/* We need this function to deal with overlapping memory areas. We know
|
||||
that the memory area 'path' points to is 'urllen' bytes big and that
|
||||
is bigger than the path. */
|
||||
memmove(&conn->path[1], conn->path, strlen(conn->path));
|
||||
is bigger than the path. Use +1 to move the zero byte too. */
|
||||
memmove(&conn->path[1], conn->path, strlen(conn->path)+1);
|
||||
conn->path[0] = '/';
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue