CURLOPT_WRITEFUNCTION.md: fix the callback proto in the example

Reported-by: Michael Litwak
Fixes #13681
Closes #13687
This commit is contained in:
Daniel Stenberg 2024-05-17 13:36:55 +02:00
parent 1a89538347
commit 6d1e144f12
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -85,7 +85,7 @@ struct memory {
size_t size;
};
static size_t cb(void *data, size_t size, size_t nmemb, void *clientp)
static size_t cb(char *data, size_t size, size_t nmemb, void *clientp)
{
size_t realsize = size * nmemb;
struct memory *mem = (struct memory *)clientp;