diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-12-31 21:40:22 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-12-31 21:40:22 +0000 |
commit | ed15a739621ddac0970e45aae3de9ec6a397b54f (patch) | |
tree | 0055545ef63f66565e02f685e4a77a293a363b42 /epan | |
parent | e58a199e9af564fa047503e3e43bda697cfe9297 (diff) |
Don't bother copying the switch name to a buffer - we can just use
"tvb_get_ptr()".
svn path=/trunk/; revision=12908
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-fcswils.c | 4 |
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: |