HPSW: Fix soft-deprecated APIs warning

Change-Id: I2f69781972fe2737e09d275dc842c4ea744e7fb1
Reviewed-on: https://code.wireshark.org/review/4952
Reviewed-by: Evan Huus <eapache@gmail.com>
This commit is contained in:
Alexis La Goutte 2014-10-27 13:43:15 +01:00 committed by Evan Huus
parent 7ff086087f
commit 5bed338b6d
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ dissect_hpsw(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
length = tvb_get_guint8(tvb, offset+1);
/* make sure still in valid tlv */
if (( length < 1 ) || ( length > tvb_length_remaining(tvb, offset+2)))
if (( length < 1 ) || ( length > tvb_reported_length_remaining(tvb, offset+2)))
break;
tlv_tree = proto_tree_add_subtree(hp_tree, tvb, offset, length+2, ett_hpsw_tlv, NULL,