projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
370748b
)
- fix win32 build
author
Michael Wallner
<mike@php.net>
Fri, 3 Mar 2006 13:25:54 +0000
(13:25 +0000)
committer
Michael Wallner
<mike@php.net>
Fri, 3 Mar 2006 13:25:54 +0000
(13:25 +0000)
http_request_api.c
patch
|
blob
|
history
diff --git
a/http_request_api.c
b/http_request_api.c
index 7927648221c52a624dd977ca0095a6342a795dd3..922f7a9e986bf389b7f36e658bf6db08fb8eced2 100644
(file)
--- a/
http_request_api.c
+++ b/
http_request_api.c
@@
-971,7
+971,7
@@
static size_t http_curl_read_callback(void *data, size_t len, size_t n, void *ct
size_t out = MIN(len * n, request->body->size - request->body->priv);
if (out) {
- memcpy(data,
request->body->data
+ request->body->priv, out);
+ memcpy(data,
((char *) request->body->data)
+ request->body->priv, out);
request->body->priv += out;
return out;
}