vici: Suppress trailing nul character

This commit is contained in:
Andreas Steffen 2021-07-06 12:05:09 +02:00
parent 2cd5314de7
commit a09a905e1d
1 changed files with 1 additions and 0 deletions

View File

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