]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Open "debugit" in binary mode ("rb").
authorGisle Vanem <gvanem@broadpark.no>
Sat, 16 Oct 2004 13:17:15 +0000 (13:17 +0000)
committerGisle Vanem <gvanem@broadpark.no>
Sat, 16 Oct 2004 13:17:15 +0000 (13:17 +0000)
docs/examples/fileupload.c

index 315c2a1b193e2b45217a066b35dad10fe1d48733..455cb0ecf7498ea70e9daa970716632f9a82256e 100644 (file)
@@ -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 */