aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dcc.c
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2011-01-16 03:35:29 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2011-01-16 03:35:29 +0000
commitf36e2be2874db3eb3917e2b9299509725d483ce3 (patch)
tree9659b266111b939e5e8ec48e927fd36978e40e88 /epan/dissectors/packet-dcc.c
parent067a0761790aabf2d6a829c59dbdac4c2d0fccdf (diff)
Use tvb_memeql() and tvb_memcpy().
Use tvb_ip_to_str() and tvb_ip6_to_str(). There's no need to pass the result of tvb_get_ptr() as the 'value' in proto_tree_add_*(): just use proto_tree_add_item(). Replace some tvb_get_ptr()s with tvb_get_ephemeral_string()s to ensure the return string is NULL terminated. svn path=/trunk/; revision=35546
Diffstat (limited to 'epan/dissectors/packet-dcc.c')
-rw-r--r--epan/dissectors/packet-dcc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/epan/dissectors/packet-dcc.c b/epan/dissectors/packet-dcc.c
index 8e23f86602..2c0e14de62 100644
--- a/epan/dissectors/packet-dcc.c
+++ b/epan/dissectors/packet-dcc.c
@@ -89,12 +89,10 @@ static gint ett_dcc_trace = -1;
#define D_TEXT(label, endpad) { \
int next_offset,linelen,left; \
- const char *line; \
while (tvb_offset_exists(tvb, offset+endpad)) { \
left = tvb_length_remaining(tvb,offset) - endpad; \
linelen = tvb_find_line_end(tvb, offset, left, &next_offset, \
FALSE); \
- line = tvb_get_ptr(tvb, offset, linelen); \
proto_tree_add_text(dcc_optree, tvb, offset, \
next_offset - offset, "%s: %s", \
label, tvb_format_text(tvb, offset, next_offset - offset)); \