From 8c69fc062ad375a3861cb8a6837742c64d6ed87c Mon Sep 17 00:00:00 2001 From: Simon Tate Date: Mon, 19 Oct 2020 13:21:05 +0100 Subject: [PATCH] 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). --- bulkdata/src/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bulkdata/src/http.c b/bulkdata/src/http.c index 7117543f2..0d271502f 100644 --- a/bulkdata/src/http.c +++ b/bulkdata/src/http.c @@ -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; }