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:
2688673
)
made the test-program in the bottom compile/build, remember to link with
author
Daniel Stenberg
<daniel@haxx.se>
Tue, 5 Jun 2001 11:27:40 +0000
(11:27 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Tue, 5 Jun 2001 11:27:40 +0000
(11:27 +0000)
strequal.o as well!
lib/formdata.c
patch
|
blob
|
history
diff --git
a/lib/formdata.c
b/lib/formdata.c
index
cadccb8
..
656e4de
100644
(file)
--- a/
lib/formdata.c
+++ b/
lib/formdata.c
@@
-634,11
+634,16
@@
int main(int argc, char **argv)
form=Curl_getFormData(httppost, &size);
- FormInit(&formread, form);
+
Curl_
FormInit(&formread, form);
- while(nread = FormReader(buffer, 1, sizeof(buffer), (FILE *)&formread)) {
+ do {
+ nread = Curl_FormReader(buffer, 1, sizeof(buffer),
+ (FILE *)&formread);
+
+ if(-1 == nread)
+ break;
fwrite(buffer, nread, 1, stderr);
- }
+ }
while(1);
fprintf(stderr, "size: %d\n", size);