strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
550bd65
)
pki: Cast length derived from pointer arithmetic to int
author
Tobias Brunner
<tobias@strongswan.org>
Wed, 22 Mar 2017 16:30:10 +0000
(17:30 +0100)
committer
Tobias Brunner
<tobias@strongswan.org>
Thu, 23 Mar 2017 17:29:18 +0000
(18:29 +0100)
src/pki/pki.c
patch
|
blob
|
history
diff --git
a/src/pki/pki.c
b/src/pki/pki.c
index
00fffef
..
0fdab2a
100644
(file)
--- 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);
}