From 994cff3fac56c288e7ae4e035724a6933906dd23 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Tue, 7 May 2019 14:40:58 +0200 Subject: [PATCH] swima-collector: Use proper type for field precision --- src/libimcv/swima/swima_collector.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libimcv/swima/swima_collector.c b/src/libimcv/swima/swima_collector.c index d2b50616f2..e8117eb6ef 100644 --- a/src/libimcv/swima/swima_collector.c +++ b/src/libimcv/swima/swima_collector.c @@ -437,7 +437,8 @@ static bool collect_tags(private_swima_collector_t *this, char *pathname, sw_locator = chunk_empty; pos = strstr(pathname, "/swidtag"); - if (pos && asprintf(&uri, "file://%.*s", pos - pathname, pathname) > 0) + if (pos && + asprintf(&uri, "file://%.*s", (int)(pos - pathname), pathname) > 0) { sw_locator = chunk_from_str(uri); } -- 2.47.2