summaryrefslogtreecommitdiff
path: root/xs_curl.h
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-04-10 15:12:09 +0200
committerdefault <nobody@localhost>2023-04-10 15:12:09 +0200
commitaa0b8732aa375440b81e176dcc868ed3540c302d (patch)
treedf49b09197b2e7e229881988855626f2c0e8bf13 /xs_curl.h
parent9e9d740199e11ca79463f9f4df6f55f0e25cc1aa (diff)
parent5ae107188f1587d09bb52b3b6c5d661bcfb1724d (diff)
Merge https://codeberg.org/grunfink/snac2
Diffstat (limited to 'xs_curl.h')
-rw-r--r--xs_curl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xs_curl.h b/xs_curl.h
index e880a0d..ca90f92 100644
--- a/xs_curl.h
+++ b/xs_curl.h
@@ -55,7 +55,7 @@ static int _data_callback(void *buffer, size_t size,
/* open space */
pd->size += sz;
- pd->data = xs_realloc(pd->data, pd->size + 1);
+ pd->data = xs_realloc(pd->data, _xs_blk_size(pd->size + 1));
/* copy data */
memcpy(pd->data + pd->offset, buffer, sz);