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