]> git.ipfire.org Git - people/ms/strongswan.git/commitdiff
vici: Suppress trailing nul character
authorAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 6 Jul 2021 10:05:09 +0000 (12:05 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 6 Jul 2021 10:06:23 +0000 (12:06 +0200)
src/libcharon/plugins/vici/vici_builder.c

index 82f12c9da7d927ada4ff935a975d7f0beb013917..129eb4d4c7be4ad4a8c6f5b20af6370e7dd72b6b 100644 (file)
@@ -145,6 +145,7 @@ static void vadd_kv_or_li(private_vici_builder_t *this, char *key,
        {
                value = chunk_alloc(len + 1);
                len = vsnprintf(value.ptr, value.len, fmt, args);
+               value.len = len;
        }
        else
        {