aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-06-09 14:02:22 +0000
committerEvan Huus <eapache@gmail.com>2013-06-09 14:02:22 +0000
commitbd629499188841e4f4261b338e2977665c32dad2 (patch)
tree62fbbb61299d1335f748fb602e521298f26de1c7
parent226b39f1d72715c1160cfdce3c515b7442c67e80 (diff)
Convince the compiler that a DNS name won't be longer than 2^32 characters,
even on 64-bit systems. svn path=/trunk/; revision=49858
-rw-r--r--epan/dissectors/packet-dns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-dns.c b/epan/dissectors/packet-dns.c
index 70a8d79f9e..89146ac1db 100644
--- a/epan/dissectors/packet-dns.c
+++ b/epan/dissectors/packet-dns.c
@@ -1181,7 +1181,7 @@ dissect_dns_query(tvbuff_t *tvb, int offset, int dns_data_offset,
proto_tree_add_string(q_tree, hf_dns_qry_name, tvb, offset, name_len, name);
offset += name_len;
- tq = proto_tree_add_uint(q_tree, hf_dns_qry_name_len, tvb, offset, 2, strlen(name));
+ tq = proto_tree_add_uint(q_tree, hf_dns_qry_name_len, tvb, offset, 2, (guint32)strlen(name));
PROTO_ITEM_SET_GENERATED(tq);
/* Count how many '.' are in the string, plus 1, in order to count the number