1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 08:38:49 -05:00

CURLOPT_READFUNCTION.3: fix fopen params in example

This commit is contained in:
Jay Satiro 2020-01-06 03:09:53 -05:00
parent e9dd17b754
commit aeb32d059b

View File

@ -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 */