From aeb32d059bc1e02993e4ca541d510fc8e3fd99bc Mon Sep 17 00:00:00 2001 From: Jay Satiro Date: Mon, 6 Jan 2020 03:09:53 -0500 Subject: CURLOPT_READFUNCTION.3: fix fopen params in example --- docs/libcurl/opts/CURLOPT_READFUNCTION.3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/libcurl/opts') diff --git a/docs/libcurl/opts/CURLOPT_READFUNCTION.3 b/docs/libcurl/opts/CURLOPT_READFUNCTION.3 index ceb1c13f9..5aa6df8f6 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 */ -- cgit v1.2.3