- fix win32 build
authorMichael Wallner <mike@php.net>
Fri, 3 Mar 2006 13:25:54 +0000 (13:25 +0000)
committerMichael Wallner <mike@php.net>
Fri, 3 Mar 2006 13:25:54 +0000 (13:25 +0000)
http_request_api.c

index 7927648221c52a624dd977ca0095a6342a795dd3..922f7a9e986bf389b7f36e658bf6db08fb8eced2 100644 (file)
@@ -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;
                                }