summaryrefslogtreecommitdiff
path: root/xs_curl.h
diff options
context:
space:
mode:
authorGravatar default2023-01-08 10:39:11 +0100
committerGravatar default2023-01-08 10:39:11 +0100
commitda7e57f4cc016c254899c9438de1cbc9871a93bc (patch)
treecec0c0bd2ac110bc0ad7d420c656e93d2937e0e4 /xs_curl.h
parentUpdated dependencies. (diff)
downloadpenes-snac2-da7e57f4cc016c254899c9438de1cbc9871a93bc.tar.gz
penes-snac2-da7e57f4cc016c254899c9438de1cbc9871a93bc.tar.xz
penes-snac2-da7e57f4cc016c254899c9438de1cbc9871a93bc.zip
Backport from xs.
Diffstat (limited to '')
-rw-r--r--xs_curl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xs_curl.h b/xs_curl.h
index 7ecef2d..2b07cad 100644
--- a/xs_curl.h
+++ b/xs_curl.h
@@ -71,7 +71,7 @@ static int _post_callback(char *buffer, size_t size,
71 int sz = pd->size - pd->offset; 71 int sz = pd->size - pd->offset;
72 72
73 /* if it's still bigger than the provided space, trim */ 73 /* if it's still bigger than the provided space, trim */
74 if (sz > size * nitems) 74 if (sz > (int) (size * nitems))
75 sz = size * nitems; 75 sz = size * nitems;
76 76
77 memcpy(buffer, pd->data + pd->offset, sz); 77 memcpy(buffer, pd->data + pd->offset, sz);