aboutsummaryrefslogtreecommitdiffstats
path: root/src/conftest/conftest.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2012-09-28 18:01:49 +0200
committerTobias Brunner <tobias@strongswan.org>2012-09-28 18:01:49 +0200
commita05f3b2021195800049e9fc64bbbcf89500dc0d4 (patch)
tree105968fbb0252a1312ddbbfa89e97fb2752a7bac /src/conftest/conftest.c
parent4bc24ba794102ab4843ab80396e983bb22e6c4d9 (diff)
downloadstrongswan-a05f3b2021195800049e9fc64bbbcf89500dc0d4.tar.bz2
strongswan-a05f3b2021195800049e9fc64bbbcf89500dc0d4.tar.xz
Make sure first argument is an int when using %.*s to print e.g. chunks
Diffstat (limited to 'src/conftest/conftest.c')
-rw-r--r--src/conftest/conftest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/conftest/conftest.c b/src/conftest/conftest.c
index 00decdd4b..6491fd294 100644
--- a/src/conftest/conftest.c
+++ b/src/conftest/conftest.c
@@ -289,7 +289,8 @@ static bool load_hooks()
pos = strchr(name, '-');
if (pos)
{
- snprintf(buf, sizeof(buf), "%.*s_hook_create", pos - name, name);
+ snprintf(buf, sizeof(buf), "%.*s_hook_create", (int)(pos - name),
+ name);
}
else
{