fix printout of length of ndmp pdu
authorsahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 23 Feb 2005 08:38:18 +0000 (08:38 +0000)
committersahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 23 Feb 2005 08:38:18 +0000 (08:38 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13478 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-ndmp.c

index 81ef863461ecf6127f6d16417d430e8d69cb0d04..e6886cb2669fdb089bcb993c64744685339d85bf 100644 (file)
@@ -2745,7 +2745,7 @@ dissect_ndmp_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        hdr_item = proto_tree_add_text(ndmp_tree, tvb, 0, 4, 
                "Fragment header: %s%u %s", 
                (ndmp_rm & NDMP_RM_LASTFRAG) ? "Last fragment, " : "", 
-               ndmp_rm & NDMP_RM_LASTFRAG, plurality(ndmp_rm & NDMP_RM_LASTFRAG, "byte", "bytes"));
+               ndmp_rm & NDMP_RM_LENGTH, plurality(ndmp_rm & NDMP_RM_LENGTH, "byte", "bytes"));
        hdr_tree = proto_item_add_subtree(hdr_item, ett_ndmp_fraghdr);
        proto_tree_add_boolean(hdr_tree, hf_ndmp_lastfrag, tvb, 0, 4, ndmp_rm);
        proto_tree_add_uint(hdr_tree, hf_ndmp_fraglen, tvb, 0, 4, ndmp_rm);