ZBee ZCL: use tvb_get_guint8() (avoid tvb_get_ptr... !)

Change-Id: I248ddb1dee5398528279807968b095cbc5413ae0
Reviewed-on: https://code.wireshark.org/review/6569
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Alexis La Goutte 2015-01-16 17:09:51 +01:00 committed by Anders Broman
parent 531df02736
commit 16d367fef5
1 changed files with 1 additions and 1 deletions

View File

@ -1553,7 +1553,7 @@ void dissect_zcl_attr_data(tvbuff_t *tvb, proto_tree *tree, guint *offset, guint
case ZBEE_ZCL_8_BIT_BITMAP:
proto_tree_add_item(tree, hf_zbee_zcl_attr_bitmap8, tvb, *offset, 1, ENC_NA);
proto_item_append_text(tree, ", Bitmap: %02x", (int)(*tvb_get_ptr(tvb, *offset, 1)));
proto_item_append_text(tree, ", Bitmap: %02x", tvb_get_guint8(tvb, *offset));
(*offset) += 1;
break;