aboutsummaryrefslogtreecommitdiff
path: root/docs/examples
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2004-10-16 13:17:15 +0000
committerGisle Vanem <gvanem@broadpark.no>2004-10-16 13:17:15 +0000
commit0bfa601a9f074f56eabfe71dda265f3f594dae84 (patch)
treefa9feb27cdf16f04cc3913179645725d20fe0df4 /docs/examples
parente3564201232ed2b7aea2111bb1c5383a8316fadb (diff)
Open "debugit" in binary mode ("rb").
Diffstat (limited to 'docs/examples')
-rw-r--r--docs/examples/fileupload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/fileupload.c b/docs/examples/fileupload.c
index 315c2a1b1..455cb0ecf 100644
--- a/docs/examples/fileupload.c
+++ b/docs/examples/fileupload.c
@@ -22,7 +22,7 @@ int main(void)
double speed_upload, total_time;
FILE *fd;
- fd = fopen("debugit", "r"); /* open file to upload */
+ fd = fopen("debugit", "rb"); /* open file to upload */
if(!fd) {
return 1; /* can't continue */