Commit Diff


commit - 4a866f64d64c610a3c8441835fee3d8dda5eca71
commit + b7b095a1563f47105aa86b80b1fd8f8fe5df9915
blob - 465b8114bf9f5abffed10760ae52cdab506c5a4e
blob + a7abadf7b349ab1a459672df5cba69dea521e0b2
--- src/httpc.c
+++ src/httpc.c
@@ -601,7 +601,7 @@ httpc_request_io_read(struct httpc_request *req, char 
 
 		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);
 		}
 
@@ -649,7 +649,7 @@ httpc_request_io_write(struct httpc_request *req, cons
 
 	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;