diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-08-31 18:15:30 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-08-31 18:15:30 +0000 |
commit | c27c545abfb12912c8107ff70f62aa4ba56060ad (patch) | |
tree | c38d8080f7201c257768055151a24deecffed97d /lib/libc | |
parent | ee8e64bf5c2bf047c37e39c7d2d1888bdcfd2ae2 (diff) |
put back a security fix downsj removed ages ago
Diffstat (limited to 'lib/libc')
-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 a2a8fe000b5..a08897b45a8 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.11 1998/03/16 05:07:02 millert Exp $ */ +/* $OpenBSD: res_query.c,v 1.12 1998/08/31 18:15:29 deraadt 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.11 1998/03/16 05:07:02 millert Exp $"; +static char rcsid[] = "$OpenBSD: res_query.c,v 1.12 1998/08/31 18:15:29 deraadt 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]; + char nbuf[MAXDNAME*2+1]; const char *longname = nbuf; int n; |