diff options
author | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-03-11 12:07:43 +0000 |
---|---|---|
committer | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-03-11 12:07:43 +0000 |
commit | 53225755e5412e12cbee9d2340976b564db4e0e9 (patch) | |
tree | 459b0c1557fd6dd1cfd627437c595359861559a4 /plugins/profinet | |
parent | a361b01a746c7b258156811eae7366d579c03148 (diff) |
as Jeff made empty field names "illegal", he changed the way PN-IO and PN-PTCP showed their blocks in an unwanted way - fix it
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21019 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'plugins/profinet')
-rw-r--r-- | plugins/profinet/packet-dcerpc-pn-io.c | 2 | ||||
-rw-r--r-- | plugins/profinet/packet-pn-ptcp.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/profinet/packet-dcerpc-pn-io.c b/plugins/profinet/packet-dcerpc-pn-io.c index cdc386b456..c652e6b7d6 100644 --- a/plugins/profinet/packet-dcerpc-pn-io.c +++ b/plugins/profinet/packet-dcerpc-pn-io.c @@ -4571,7 +4571,7 @@ dissect_block(tvbuff_t *tvb, int offset, val_to_str(u16BlockType, pn_io_block_type, "Unknown (0x%04x)"), u16BlockLength, u8BlockVersionHigh, u8BlockVersionLow); - proto_item_append_text(sub_item, "%s", + proto_item_set_text(sub_item, "%s", val_to_str(u16BlockType, pn_io_block_type, "Unknown (0x%04x)")); if (check_col(pinfo->cinfo, COL_INFO)) diff --git a/plugins/profinet/packet-pn-ptcp.c b/plugins/profinet/packet-pn-ptcp.c index 1227d9cfe4..958f83a06d 100644 --- a/plugins/profinet/packet-pn-ptcp.c +++ b/plugins/profinet/packet-pn-ptcp.c @@ -436,7 +436,7 @@ dissect_PNPTCP_block(tvbuff_t *tvb, int offset, offset = dissect_PNPTCP_TLVHeader(tvb, offset, pinfo, tlvheader_tree, sub_item, &type, &length); - proto_item_append_text(sub_item, "%s", + proto_item_set_text(sub_item, "%s", val_to_str(type, pn_ptcp_block_type, "Unknown")); proto_item_append_text(tlvheader_item, ": Type=%s (%x), Length=%u", |