projects
/
curl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24cfa7f
)
postsize is off_t now, so we typecase it to int before doing normal printf
author
Daniel Stenberg
<daniel@haxx.se>
Sat, 13 Mar 2004 17:11:42 +0000
(17:11 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Sat, 13 Mar 2004 17:11:42 +0000
(17:11 +0000)
with it (knowing it won't be larger than what fits in an int)
lib/http.c
patch
|
blob
|
history
diff --git
a/lib/http.c
b/lib/http.c
index 3aa5af34af3b9a6cacb37656692b2723d1f00928..812bbc787236a662b124ec7050b6e0a13cd8b935 100644
(file)
--- a/
lib/http.c
+++ b/
lib/http.c
@@
-1623,7
+1623,7
@@
CURLcode Curl_http(struct connectdata *conn)
add_buffer(req_buffer, data->set.postfields, (size_t)postsize);
else {
/* Append the POST data chunky-style */
- add_bufferf(req_buffer, "%x\r\n", postsize);
+ add_bufferf(req_buffer, "%x\r\n",
(int)
postsize);
add_buffer(req_buffer, data->set.postfields, (size_t)postsize);
add_buffer(req_buffer, "\r\n0\r\n\r\n", 7); /* end of a chunked
transfer stream */