From: Tobias Brunner Date: Tue, 7 May 2019 12:40:58 +0000 (+0200) Subject: swima-collector: Use proper type for field precision X-Git-Tag: 5.8.0rc1~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=994cff3fac56c288e7ae4e035724a6933906dd23;p=thirdparty%2Fstrongswan.git swima-collector: Use proper type for field precision --- 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); }