Skip to content

Commit

Permalink
vici: Suppress trailing nul character
Browse files Browse the repository at this point in the history
  • Loading branch information
strongX509 committed Jul 6, 2021
1 parent 2cd5314 commit a09a905
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libcharon/plugins/vici/vici_builder.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit a09a905

Please sign in to comment.