mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-07 00:01:49 -04:00
swima-collector: Use proper type for field precision
This commit is contained in:
parent
a4abb263c9
commit
994cff3fac
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user