aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/ftpget.c
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/ftpget.c')
-rw-r--r--docs/examples/ftpget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/ftpget.c b/docs/examples/ftpget.c
index 6d728c6ec..2c2275fa5 100644
--- a/docs/examples/ftpget.c
+++ b/docs/examples/ftpget.c
@@ -58,7 +58,7 @@ int main(void)
/* Define our callback to get called when there's data to be written */
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, my_fwrite);
/* Set a pointer to our struct to pass to the callback */
- curl_easy_setopt(curl, CURLOPT_FILE, &ftpfile);
+ curl_easy_setopt(curl, CURLOPT_WRITEDATA, &ftpfile);
/* Switch on full protocol/debug output */
curl_easy_setopt(curl, CURLOPT_VERBOSE, TRUE);