diff options
author | Michael Mann <mmann78@netscape.net> | 2016-05-10 16:37:44 -0400 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2016-05-10 22:49:25 +0000 |
commit | 4d3df66af44b563a1c6d6fe03fcdf09f93877dba (patch) | |
tree | a9d9927c9c20bfdc0b304f439a024b34fd55eac3 /epan/ftypes/ftype-protocol.c | |
parent | 1dccd1ee072722fbe6d5e1a9d726a7e87d191f76 (diff) | |
download | wireshark-4d3df66af44b563a1c6d6fe03fcdf09f93877dba.tar.gz |
Give FvalueToStringRepr a length parameter.
This allows the conversion of a few straggler strcpy calls
in ftype library. Also provides a more accurate size value
instead of the many hard coded values the ftypes were using.
Change-Id: Ia6273980432e16ad3a6233816a6054d9fed5d2a4
Reviewed-on: https://code.wireshark.org/review/15344
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/ftypes/ftype-protocol.c')
-rw-r--r-- | epan/ftypes/ftype-protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/ftypes/ftype-protocol.c b/epan/ftypes/ftype-protocol.c index 35c449a701..49bf4fb9ff 100644 --- a/epan/ftypes/ftype-protocol.c +++ b/epan/ftypes/ftype-protocol.c @@ -142,7 +142,7 @@ val_repr_len(fvalue_t *fv, ftrepr_t rtype, int field_display _U_) } static void -val_to_repr(fvalue_t *fv, ftrepr_t rtype, int field_display _U_, char * volatile buf) +val_to_repr(fvalue_t *fv, ftrepr_t rtype, int field_display _U_, char * volatile buf, unsigned int size _U_) { guint length; |