aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-nbns.c
diff options
context:
space:
mode:
authorsahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>2005-10-08 12:31:06 +0000
committersahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>2005-10-08 12:31:06 +0000
commita63249b04e469ef69a8d1f8a34161215e01b1a4c (patch)
tree4cfddce6c9afc0c5173c2a10448a5896d1be1e9b /epan/dissectors/packet-nbns.c
parentdf0081bb8cdc47ca2ce6060778ea98973371ca19 (diff)
improve get_dns_name now that we have cheap emem allocated buffers
and get rid of a few strcpy() a whole lot of arrays from the stack and make the function prototype slightly nicer. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16166 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-nbns.c')
-rw-r--r--epan/dissectors/packet-nbns.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/epan/dissectors/packet-nbns.c b/epan/dissectors/packet-nbns.c
index 36d8731106..bd0f439d88 100644
--- a/epan/dissectors/packet-nbns.c
+++ b/epan/dissectors/packet-nbns.c
@@ -281,10 +281,8 @@ get_nbns_name(tvbuff_t *tvb, int offset, int nbns_data_offset,
int name_type;
char *pname_ret;
- name=ep_alloc(MAXDNAME);
nbname=ep_alloc(NBNAME_BUF_LEN);
- name_len = get_dns_name(tvb, offset, nbns_data_offset, name,
- MAXDNAME);
+ name_len = get_dns_name(tvb, offset, nbns_data_offset, &name);
/* OK, now undo the first-level encoding. */
pname = &name[0];