flags have only 1 byte
authorkukosa <kukosa@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 30 Aug 2006 10:03:50 +0000 (10:03 +0000)
committerkukosa <kukosa@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 30 Aug 2006 10:03:50 +0000 (10:03 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19086 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-tcp.c

index 7ef4f21d50629ef3b8b6704facbfa60795156179..1f11043dd225e824fd8414a32f068af7b5a49b02 100644 (file)
@@ -2242,7 +2242,7 @@ dissect_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     proto_tree_add_uint_format(tcp_tree, hf_tcp_hdr_len, tvb, offset + 12, 1, tcph->th_hlen,
        "Header length: %u bytes", tcph->th_hlen);
     tf = proto_tree_add_uint_format(tcp_tree, hf_tcp_flags, tvb, offset + 13, 1,
-       tcph->th_flags, "Flags: 0x%04x (%s)", tcph->th_flags, flags);
+       tcph->th_flags, "Flags: 0x%02x (%s)", tcph->th_flags, flags);
     field_tree = proto_item_add_subtree(tf, ett_tcp_flags);
     proto_tree_add_boolean(field_tree, hf_tcp_flags_cwr, tvb, offset + 13, 1, tcph->th_flags);
     proto_tree_add_boolean(field_tree, hf_tcp_flags_ecn, tvb, offset + 13, 1, tcph->th_flags);