mirror of
https://github.com/curl/curl.git
synced 2026-04-20 08:01:15 +03:00
CURLOPT_READFUNCTION.3: fix fopen params in example
This commit is contained in:
parent
e9dd17b754
commit
aeb32d059b
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue