aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-fcswils.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2004-12-31 21:40:22 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2004-12-31 21:40:22 +0000
commit0ae475b9e26c89fdbeb02a793cda6c7c21274ae2 (patch)
tree0055545ef63f66565e02f685e4a77a293a363b42 /epan/dissectors/packet-fcswils.c
parent10d0689daf19db1eeb0544b911e6bbc2119b7723 (diff)
Don't bother copying the switch name to a buffer - we can just use
"tvb_get_ptr()". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12908 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-fcswils.c')
-rw-r--r--epan/dissectors/packet-fcswils.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/epan/dissectors/packet-fcswils.c b/epan/dissectors/packet-fcswils.c
index 93b1b50e2b..61c02bf870 100644
--- a/epan/dissectors/packet-fcswils.c
+++ b/epan/dissectors/packet-fcswils.c
@@ -659,7 +659,6 @@ dissect_swils_efp (tvbuff_t *tvb, proto_tree *efp_tree, guint8 isreq _U_)
offset = 0;
fcswils_efp efp;
guint8 rec_type;
- guint8 sname[8];
offset += 1;
efp.reclen = tvb_get_guint8 (tvb, offset);
@@ -709,9 +708,8 @@ dissect_swils_efp (tvbuff_t *tvb, proto_tree *efp_tree, guint8 isreq _U_)
case FC_SWILS_LRECTYPE_DOMAIN:
proto_tree_add_item (lrec_tree, hf_swils_efp_dom_id, tvb, offset+1, 1, 0);
- tvb_memcpy (tvb, sname, offset+8, 8);
proto_tree_add_string (lrec_tree, hf_swils_efp_switch_name, tvb, offset+8, 8,
- fcwwn_to_str (sname));
+ fcwwn_to_str (tvb_get_ptr(tvb, offset+8, 8)));
break;
case FC_SWILS_LRECTYPE_MCAST: