diff options
author | Alex Feldman <alex@cvs.openbsd.org> | 1999-09-27 23:58:27 +0000 |
---|---|---|
committer | Alex Feldman <alex@cvs.openbsd.org> | 1999-09-27 23:58:27 +0000 |
commit | 2a81e606d77ee44950d99ede0778c8df93bf7917 (patch) | |
tree | a1651a598ca07cd6d53066be49c6e7fff48bcb65 /lib/libc/net/res_query.c | |
parent | 7a98fd4a49fe456db79bf1c15443d90fa1d6281a (diff) |
Correct buffer size.
Diffstat (limited to 'lib/libc/net/res_query.c')
-rw-r--r-- | lib/libc/net/res_query.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/net/res_query.c b/lib/libc/net/res_query.c index a08897b45a8..01d1f691cb7 100644 --- a/lib/libc/net/res_query.c +++ b/lib/libc/net/res_query.c @@ -1,4 +1,4 @@ -/* $OpenBSD: res_query.c,v 1.12 1998/08/31 18:15:29 deraadt Exp $ */ +/* $OpenBSD: res_query.c,v 1.13 1999/09/27 23:58:26 alex Exp $ */ /* * ++Copyright++ 1988, 1993 @@ -60,7 +60,7 @@ static char sccsid[] = "@(#)res_query.c 8.1 (Berkeley) 6/4/93"; static char rcsid[] = "$From: res_query.c,v 8.9 1996/09/22 00:13:28 vixie Exp $"; #else -static char rcsid[] = "$OpenBSD: res_query.c,v 1.12 1998/08/31 18:15:29 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: res_query.c,v 1.13 1999/09/27 23:58:26 alex Exp $"; #endif #endif /* LIBC_SCCS and not lint */ @@ -320,7 +320,7 @@ res_querydomain(name, domain, class, type, answer, anslen) u_char *answer; /* buffer to put answer */ int anslen; /* size of answer */ { - char nbuf[MAXDNAME*2+1]; + char nbuf[MAXDNAME*2+1+1]; const char *longname = nbuf; int n; |