ANSI IS-637 A: fix byte highlighting of destination address when using ASCII encoding
Change-Id: I11d5de26bd73bada742e808f582e0dd746032aa2 Reviewed-on: https://code.wireshark.org/review/8684 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
This commit is contained in:
parent
65f873fb7b
commit
6c58665540
|
@ -2081,14 +2081,14 @@ trans_param_address(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, gui
|
|||
|
||||
if (email_addr)
|
||||
{
|
||||
proto_tree_add_string_format(tree, hf_ansi_637_trans_addr_param_number, tvb, offset, num_fields - 1,
|
||||
proto_tree_add_string_format(tree, hf_ansi_637_trans_addr_param_number, tvb, offset - 1, num_fields + 1,
|
||||
ansi_637_bigbuf,
|
||||
"Number: %s",
|
||||
ansi_637_bigbuf);
|
||||
}
|
||||
else
|
||||
{
|
||||
proto_tree_add_bytes(tree, hf_ansi_637_trans_bin_addr, tvb, offset, num_fields - 1,
|
||||
proto_tree_add_bytes(tree, hf_ansi_637_trans_bin_addr, tvb, offset - 1, num_fields + 1,
|
||||
(guint8 *) ansi_637_bigbuf);
|
||||
}
|
||||
|
||||
|
@ -2168,7 +2168,7 @@ trans_param_address(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, gui
|
|||
}
|
||||
ansi_637_bigbuf[i] = '\0';
|
||||
|
||||
proto_tree_add_string_format(tree, hf_ansi_637_trans_addr_param_number, tvb, offset, num_fields - 1,
|
||||
proto_tree_add_string_format(tree, hf_ansi_637_trans_addr_param_number, tvb, offset - 1, num_fields + 1,
|
||||
ansi_637_bigbuf,
|
||||
"Number: %s",
|
||||
ansi_637_bigbuf);
|
||||
|
|
Loading…
Reference in New Issue