From: Jay Satiro Date: Mon, 6 Jan 2020 08:09:53 +0000 (-0500) Subject: CURLOPT_READFUNCTION.3: fix fopen params in example X-Git-Tag: curl-7_68_0~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aeb32d059bc1e02993e4ca541d510fc8e3fd99bc;p=thirdparty%2Fcurl.git CURLOPT_READFUNCTION.3: fix fopen params in example --- diff --git a/docs/libcurl/opts/CURLOPT_READFUNCTION.3 b/docs/libcurl/opts/CURLOPT_READFUNCTION.3 index ceb1c13f95..5aa6df8f61 100644 --- a/docs/libcurl/opts/CURLOPT_READFUNCTION.3 +++ b/docs/libcurl/opts/CURLOPT_READFUNCTION.3 @@ -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 */