X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=http_send_api.c;h=7be1968e18b3b76fa88d18e5d9f084c9e0ee81d6;hb=b46b6f8c9261ed2b7c5198169073b0ed18a9c4f5;hp=9c5747cbe4e4f3be861e9eba68561ac0b354f54c;hpb=1d04e52e7a5fc759c906d17d3547e74df06c2131;p=m6w6%2Fext-http 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);