diff options
author | Jay Satiro <raysatiro@yahoo.com> | 2020-01-06 03:09:53 -0500 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2020-01-06 03:09:53 -0500 |
commit | aeb32d059bc1e02993e4ca541d510fc8e3fd99bc (patch) | |
tree | 149697dea82e3ef7abe71373fcfe4cbde7a0c1ed /docs | |
parent | e9dd17b754f0f1c3a695af0ddf4d2ba95e4dc69d (diff) |
CURLOPT_READFUNCTION.3: fix fopen params in example
Diffstat (limited to 'docs')
-rw-r--r-- | docs/libcurl/opts/CURLOPT_READFUNCTION.3 | 2 |
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 */ |