commit - 803a77b2da6aedde7e333a5480f2a66eae623910
commit + 183a189b6ad23b5e3de955b80cf5e4682ae34bd8
blob - 465b8114bf9f5abffed10760ae52cdab506c5a4e
blob + a7abadf7b349ab1a459672df5cba69dea521e0b2
--- src/httpc.c
+++ src/httpc.c
if (recv_len > remain) {
const size_t tocopy = recv_len - remain;
- char *ptr = ibuf_alloc(&req->io_recv, tocopy);
+ char *ptr = xibuf_alloc(&req->io_recv, tocopy);
memcpy(ptr, recv + remain, tocopy);
}
if (len > 0) {
ibuf_reset(&req->send);
- char *buf = ibuf_alloc(&req->send, len);
+ char *buf = xibuf_alloc(&req->send, len);
memcpy(buf, ptr, len);
} else {
req->io_send_closed = true;