aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-wol.c
diff options
context:
space:
mode:
authorcmaynard <cmaynard@f5534014-38df-0310-8fa8-9805f1628bb7>2011-12-27 16:51:59 +0000
committercmaynard <cmaynard@f5534014-38df-0310-8fa8-9805f1628bb7>2011-12-27 16:51:59 +0000
commitf2e41eb05b8c01b3ad1caae78c06f16f94a58eb4 (patch)
treee1faa7439539683d8c840d6ed5c58662685af9a5 /epan/dissectors/packet-wol.c
parenta9b7160f6e78316362f75ccfef6bd561e66b0588 (diff)
Use tvb_ether_to_str() instead of ether_to_str(ep_tvb_memdup()). Add modelines.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40300 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-wol.c')
-rw-r--r--epan/dissectors/packet-wol.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/epan/dissectors/packet-wol.c b/epan/dissectors/packet-wol.c
index 54aef37072..68a16b7671 100644
--- a/epan/dissectors/packet-wol.c
+++ b/epan/dissectors/packet-wol.c
@@ -142,7 +142,7 @@ dissect_wol(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
else if ( len >= 108 )
{
len = 108;
- passwd = ether_to_str(ep_tvb_memdup(tvb, 102, 6));
+ passwd = tvb_ether_to_str(tvb, 102);
}
else
{
@@ -347,3 +347,16 @@ proto_reg_handoff_wol(void)
heur_dissector_add("udp", dissect_wol, proto_wol);
}
+/*
+ * Editor modelines - http://www.wireshark.org/tools/modelines.html
+ *
+ * Local variables:
+ * c-basic-offset: 4
+ * tab-width: 4
+ * indent-tabs-mode: nil
+ * End:
+ *
+ * vi: set shiftwidth=4 tabstop=4 expandtab:
+ * :indentSize=4:tabSize=4:noTabs=true:
+ */
+