aboutsummaryrefslogtreecommitdiff
path: root/resolv
diff options
context:
space:
mode:
Diffstat (limited to 'resolv')
-rw-r--r--resolv/res_query.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/resolv/res_query.c b/resolv/res_query.c
index 545e009e8d..28ac3828c2 100644
--- a/resolv/res_query.c
+++ b/resolv/res_query.c
@@ -321,7 +321,7 @@ res_querydomain(name, domain, class, type, answer, anslen)
u_char *answer; /* buffer to put answer */
int anslen; /* size of answer */
{
- char nbuf[MAXDNAME];
+ char nbuf[MAXDNAME * 2 + 2];
const char *longname = nbuf;
int n;