aboutsummaryrefslogtreecommitdiff
path: root/docs/libcurl
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2020-01-06 03:09:53 -0500
committerJay Satiro <raysatiro@yahoo.com>2020-01-06 03:09:53 -0500
commitaeb32d059bc1e02993e4ca541d510fc8e3fd99bc (patch)
tree149697dea82e3ef7abe71373fcfe4cbde7a0c1ed /docs/libcurl
parente9dd17b754f0f1c3a695af0ddf4d2ba95e4dc69d (diff)
CURLOPT_READFUNCTION.3: fix fopen params in example
Diffstat (limited to 'docs/libcurl')
-rw-r--r--docs/libcurl/opts/CURLOPT_READFUNCTION.32
1 files changed, 1 insertions, 1 deletions
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 */