diff options
Diffstat (limited to 'epan/dissectors/packet-mgcp.c')
-rw-r--r-- | epan/dissectors/packet-mgcp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-mgcp.c b/epan/dissectors/packet-mgcp.c index 82d1e072bc..d1bbc741d3 100644 --- a/epan/dissectors/packet-mgcp.c +++ b/epan/dissectors/packet-mgcp.c @@ -1343,7 +1343,7 @@ static gint tvb_parse_param(tvbuff_t* tvb, gint offset, gint len, int** hf) /* set the observedEvents or signalReq used in Voip Calls analysis */ if (buf != NULL) { - *buf = tvb_get_string(wmem_packet_scope(), tvb, tvb_current_offset, (len - tvb_current_offset + offset)); + *buf = tvb_get_string_enc(wmem_packet_scope(), tvb, tvb_current_offset, (len - tvb_current_offset + offset), ENC_ASCII); } } } @@ -1848,7 +1848,7 @@ dissect_mgcp_connectionparams(proto_tree *parent_tree, tvbuff_t *tvb, gint offse /* The P: line */ offset += param_type_len; /* skip the P: */ - tokenline = tvb_get_string(wmem_packet_scope(), tvb, offset, param_val_len); + tokenline = tvb_get_string_enc(wmem_packet_scope(), tvb, offset, param_val_len, ENC_ASCII); /* Split into type=value pairs separated by comma */ tokens = wmem_strsplit(wmem_packet_scope(), tokenline, ",", -1); @@ -1960,7 +1960,7 @@ dissect_mgcp_localconnectionoptions(proto_tree *parent_tree, tvbuff_t *tvb, gint /* The L: line */ offset += param_type_len; /* skip the L: */ - tokenline = tvb_get_string(wmem_packet_scope(), tvb, offset, param_val_len); + tokenline = tvb_get_string_enc(wmem_packet_scope(), tvb, offset, param_val_len, ENC_ASCII); /* Split into type=value pairs separated by comma */ tokens = wmem_strsplit(wmem_packet_scope(), tokenline, ",", -1); |