diff options
author | Tobias Brunner <tobias@strongswan.org> | 2017-03-22 17:30:10 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2017-03-23 18:29:18 +0100 |
commit | 4c9418ac4dd9e2e669d93c21c777eee2fc68017e (patch) | |
tree | 032f7b13d510f980aafc0084ce3efeacf7473923 | |
parent | 550bd654a72929f3423dd5e3a05249050e2a6b7a (diff) | |
download | strongswan-4c9418ac4dd9e2e669d93c21c777eee2fc68017e.tar.bz2 strongswan-4c9418ac4dd9e2e669d93c21c777eee2fc68017e.tar.xz |
pki: Cast length derived from pointer arithmetic to int
-rw-r--r-- | src/pki/pki.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pki/pki.c b/src/pki/pki.c index 00fffefa6..0fdab2aab 100644 --- a/src/pki/pki.c +++ b/src/pki/pki.c @@ -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); } |