bulkdata: Bulkdata fails to build on x86

To get bulkdata to build on x86, added limitation on the asprintf %.*s
to use integer type (as per the programming manual).
This commit is contained in:
Simon Tate 2020-10-19 13:21:05 +01:00
parent 8ad4f32786
commit 8c69fc062a

View file

@ -48,7 +48,7 @@ static size_t http_get_response(void *buffer, size_t size, size_t rxed, char **m
{
char *c;
if (asprintf(&c, "%s%.*s", *msg_in, size * rxed, (char *)buffer) == -1) {
if (asprintf(&c, "%s%.*s", *msg_in, (int) (size * rxed), (char *)buffer) == -1) {
FREE(*msg_in);
return -1;
}