projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7c5b28
)
ah, move the zero byte too or havoc will occur
author
Daniel Stenberg
<daniel@haxx.se>
Fri, 11 Apr 2003 16:23:06 +0000
(16:23 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Fri, 11 Apr 2003 16:23:06 +0000
(16:23 +0000)
lib/url.c
patch
|
blob
|
history
diff --git
a/lib/url.c
b/lib/url.c
index
1daa658
..
1cd493c
100644
(file)
--- a/
lib/url.c
+++ b/
lib/url.c
@@
-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] = '/';
}