diff options
Diffstat (limited to 'epan/dissectors/packet-sysex.c')
-rw-r--r-- | epan/dissectors/packet-sysex.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-sysex.c b/epan/dissectors/packet-sysex.c index aef7b5de25..43f8b304c6 100644 --- a/epan/dissectors/packet-sysex.c +++ b/epan/dissectors/packet-sysex.c @@ -742,7 +742,7 @@ static tvbuff_t * unpack_digitech_message(tvbuff_t *tvb, gint offset) { tvbuff_t *next_tvb; - gint length = tvb_length(tvb); + gint length = tvb_captured_length(tvb); gint data_len = length - offset - 2; const guint8* data_ptr; gint remaining = data_len; @@ -977,7 +977,7 @@ dissect_digitech_procedure(guint8 procedure, const gint offset, * of System Exclusive packet (one byte is checksum, the other one * is EOX) */ - if (tvb_length(tvb) - offset < 2) + if (tvb_captured_length(tvb) - offset < 2) { /* There is no DigiTech procedure data, do not attempt further * dissection */ @@ -988,7 +988,7 @@ dissect_digitech_procedure(guint8 procedure, const gint offset, add_new_data_source(pinfo, data_tvb, "Unpacked Procedure Data"); data_offset = 0; - data_len = tvb_length(data_tvb); + data_len = tvb_captured_length(data_tvb); switch (procedure) { @@ -1120,7 +1120,7 @@ dissect_sysex_command(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree col_set_str(pinfo->cinfo, COL_PROTOCOL, "SYSEX"); col_set_str(pinfo->cinfo, COL_INFO, "MIDI System Exclusive Command"); - data_len = tvb_length(tvb); + data_len = tvb_captured_length(tvb); if (parent_tree) { @@ -1186,7 +1186,7 @@ dissect_sysex_command(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree dissect_digitech_procedure(procedure_id, offset, tvb, pinfo, tree); - len = tvb_length(tvb) - 2; + len = tvb_captured_length(tvb) - 2; offset = len; /* Penultimate byte is checksum */ data_ptr = tvb_get_ptr(tvb, 1, len); /* Calculate checksum */ |