summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-09-03 18:12:32 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-09-03 18:12:32 +0000
commit5ba130446103240bec78f24845faaa0eaae374e4 (patch)
tree6dfaeaad6a7c9ebc2064a73fc224313d77137c79 /lib
parentd506e3349de8d747ad1756bc69d1ca302d8fd0f1 (diff)
sizeof("string") includes 0 byte; aazubel@tatu.cnba.uba.ar
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/net/gethostnamadr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/net/gethostnamadr.c b/lib/libc/net/gethostnamadr.c
index cd6a7dc894c..f8f2ccd2d09 100644
--- a/lib/libc/net/gethostnamadr.c
+++ b/lib/libc/net/gethostnamadr.c
@@ -52,7 +52,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: gethostnamadr.c,v 1.36 1999/07/03 18:07:53 jakob Exp $";
+static char rcsid[] = "$OpenBSD: gethostnamadr.c,v 1.37 1999/09/03 18:12:31 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
@@ -1009,7 +1009,7 @@ _yp_gethtbyaddr(addr)
struct hostent *hp = (struct hostent *)NULL;
static char *__ypcurrent;
int __ypcurrentlen, r;
- char name[sizeof("xxx.xxx.xxx.xxx") + 1];
+ char name[sizeof("xxx.xxx.xxx.xxx")];
if (!__ypdomain) {
if (_yp_check(&__ypdomain) == 0)