]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
CURLOPT_READFUNCTION.3: fix fopen params in example
authorJay Satiro <raysatiro@yahoo.com>
Mon, 6 Jan 2020 08:09:53 +0000 (03:09 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Mon, 6 Jan 2020 08:09:53 +0000 (03:09 -0500)
docs/libcurl/opts/CURLOPT_READFUNCTION.3

index ceb1c13f952f36bf309a78f952fb3386175dff39..5aa6df8f61a4169d8478debfd302cdf304a639c8 100644 (file)
@@ -88,7 +88,7 @@ size_t read_callback(void *ptr, size_t size, size_t nmemb, void *userdata)
 
 void setup(char *uploadthis)
 {
-  FILE *file = fopen("rb", uploadthis);
+  FILE *file = fopen(uploadthis, "rb");
   CURLcode result;
 
   /* set callback to use */