diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-01-23 01:37:39 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-01-23 01:37:39 +0000 |
commit | d4b7cc274273ec84110498744de8b98898e8a1ea (patch) | |
tree | 9b91a0cfe5b67f8b33f1c9d90843e31e32331fa7 /epan/dissectors/packet-applemidi.c | |
parent | aa69618c746f8b24696b3f2931016d4168844284 (diff) |
Use tvb_get_string_enc() rather than tvb_get_string().
svn path=/trunk/; revision=54920
Diffstat (limited to 'epan/dissectors/packet-applemidi.c')
-rw-r--r-- | epan/dissectors/packet-applemidi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-applemidi.c b/epan/dissectors/packet-applemidi.c index d00f02fec6..ed1999a557 100644 --- a/epan/dissectors/packet-applemidi.c +++ b/epan/dissectors/packet-applemidi.c @@ -167,7 +167,7 @@ dissect_applemidi_common( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, g /* Name is optional */ if ( len > 0 ) { - name = tvb_get_string( wmem_packet_scope(), tvb, offset, len ); + name = tvb_get_string_enc( wmem_packet_scope(), tvb, offset, len, ENC_UTF_8|ENC_NA ); string_size = (gint)( strlen( name ) + 1 ); proto_tree_add_item( applemidi_tree, hf_applemidi_name, tvb, offset, string_size, ENC_UTF_8|ENC_NA ); col_append_fstr( pinfo->cinfo, COL_INFO, ": peer = \"%s\"", name ); |