Skip to content

Commit

Permalink
Return the correct length for quoted values in fr_value_box_snprint
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Oct 9, 2019
1 parent 9417f64 commit dd0b91d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/util/value.c
Original file line number Diff line number Diff line change
Expand Up @@ -5039,6 +5039,7 @@ size_t fr_value_box_snprint(char *out, size_t outlen, fr_value_box_t const *data
buf[0] = (char) quote;
buf[len] = (char) quote;
buf[len + 1] = '\0';
len++; /* Account for trailing quote */
}
a = buf;
break;
Expand Down

0 comments on commit dd0b91d

Please sign in to comment.