X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_send_api.c;h=7be1968e18b3b76fa88d18e5d9f084c9e0ee81d6;hp=9c5747cbe4e4f3be861e9eba68561ac0b354f54c;hb=bed6be7b39b7992b44eb56455afe3f0b0bd04964;hpb=1d04e52e7a5fc759c906d17d3547e74df06c2131 diff --git a/http_send_api.c b/http_send_api.c index 9c5747c..7be1968 100644 --- a/http_send_api.c +++ b/http_send_api.c @@ -119,7 +119,7 @@ static inline void _http_send_response_data_fetch(void **buffer, const void *dat break; } case SEND_DATA: { - const char *buf = data + begin; + const char *buf = ((const char *) data) + begin; while (len > 0) { got = MIN(len, bsz); http_send_response_data_plain(buffer, buf, got);