pki: Cast length derived from pointer arithmetic to int

This commit is contained in:
Tobias Brunner 2017-03-22 17:30:10 +01:00
parent 550bd654a7
commit 4c9418ac4d
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}