pki: Cast length derived from pointer arithmetic to int
This commit is contained in:
+1
-1
@@ -273,7 +273,7 @@ traffic_selector_t* parse_ts(char *str)
|
|||||||
to = strchr(str, '-');
|
to = strchr(str, '-');
|
||||||
if (to)
|
if (to)
|
||||||
{
|
{
|
||||||
snprintf(from, sizeof(from), "%.*s", to - str, str);
|
snprintf(from, sizeof(from), "%.*s", (int)(to - str), str);
|
||||||
to++;
|
to++;
|
||||||
return traffic_selector_create_from_string(0, type, from, 0, to, 65535);
|
return traffic_selector_create_from_string(0, type, from, 0, to, 65535);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user