vici: Suppress trailing nul character

laforge/swu
Andreas Steffen 2 years ago
parent 2cd5314de7
commit a09a905e1d
  1. 1
      src/libcharon/plugins/vici/vici_builder.c

@ -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
{

Loading…
Cancel
Save