summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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 e880a0d..ca90f92 100644
--- a/xs_curl.h
+++ b/xs_curl.h
@@ -55,7 +55,7 @@ static int _data_callback(void *buffer, size_t size,
55 55
56 /* open space */ 56 /* open space */
57 pd->size += sz; 57 pd->size += sz;
58 pd->data = xs_realloc(pd->data, pd->size + 1); 58 pd->data = xs_realloc(pd->data, _xs_blk_size(pd->size + 1));
59 59
60 /* copy data */ 60 /* copy data */
61 memcpy(pd->data + pd->offset, buffer, sz); 61 memcpy(pd->data + pd->offset, buffer, sz);