diff options
author | João Valverde <j@v6e.pt> | 2021-11-10 10:28:26 +0000 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2021-11-10 16:01:21 +0000 |
commit | b49abcb2155828c7e5b804e751d4cc8d6262f1d1 (patch) | |
tree | 6082f9fce60f7e19e48ef7f2564c6227a0e8cbab /rawshark.c | |
parent | 084619088c4a05dc94a5d8548bbf947348a9c5ff (diff) |
epan: Remove fvalue_string_repr_len() from the public API
This function is unnecessary. Clients are receiving a wmem-allocated
buffer and have no need to know the length apriori.
Diffstat (limited to 'rawshark.c')
-rw-r--r-- | rawshark.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rawshark.c b/rawshark.c index a18bf0a536..66e21d5466 100644 --- a/rawshark.c +++ b/rawshark.c @@ -1135,9 +1135,9 @@ static gboolean print_field_value(field_info *finfo, int cmd_line_index) * this field has an associated value, * e.g: ip.hdr_len */ - fs_len = fvalue_string_repr_len(&finfo->value, FTREPR_DFILTER, finfo->hfinfo->display); fs_buf = fvalue_to_string_repr(NULL, &finfo->value, FTREPR_DFILTER, finfo->hfinfo->display); + fs_len = strlen(fs_buf); fs_ptr = fs_buf; /* String types are quoted. Remove them. */ |