summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorderaadt <>1999-09-03 18:12:31 +0000
committerderaadt <>1999-09-03 18:12:31 +0000
commit4b9a539e24aa83596bf461e37114bcf66404eca6 (patch)
tree4a33b8235704a06408eba14fdc140369275950b6 /src
parent23b5374f8e5e1cf893e358275617ba8b58163ae7 (diff)
downloadopenbsd-4b9a539e24aa83596bf461e37114bcf66404eca6.tar.gz
openbsd-4b9a539e24aa83596bf461e37114bcf66404eca6.tar.bz2
openbsd-4b9a539e24aa83596bf461e37114bcf66404eca6.zip
sizeof("string") includes 0 byte; aazubel@tatu.cnba.uba.ar
Diffstat (limited to 'src')
-rw-r--r--src/lib/libc/net/gethostnamadr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/net/gethostnamadr.c b/src/lib/libc/net/gethostnamadr.c
index cd6a7dc894..f8f2ccd2d0 100644
--- a/src/lib/libc/net/gethostnamadr.c
+++ b/src/lib/libc/net/gethostnamadr.c
@@ -52,7 +52,7 @@
52 */ 52 */
53 53
54#if defined(LIBC_SCCS) && !defined(lint) 54#if defined(LIBC_SCCS) && !defined(lint)
55static char rcsid[] = "$OpenBSD: gethostnamadr.c,v 1.36 1999/07/03 18:07:53 jakob Exp $"; 55static char rcsid[] = "$OpenBSD: gethostnamadr.c,v 1.37 1999/09/03 18:12:31 deraadt Exp $";
56#endif /* LIBC_SCCS and not lint */ 56#endif /* LIBC_SCCS and not lint */
57 57
58#include <sys/param.h> 58#include <sys/param.h>
@@ -1009,7 +1009,7 @@ _yp_gethtbyaddr(addr)
1009 struct hostent *hp = (struct hostent *)NULL; 1009 struct hostent *hp = (struct hostent *)NULL;
1010 static char *__ypcurrent; 1010 static char *__ypcurrent;
1011 int __ypcurrentlen, r; 1011 int __ypcurrentlen, r;
1012 char name[sizeof("xxx.xxx.xxx.xxx") + 1]; 1012 char name[sizeof("xxx.xxx.xxx.xxx")];
1013 1013
1014 if (!__ypdomain) { 1014 if (!__ypdomain) {
1015 if (_yp_check(&__ypdomain) == 0) 1015 if (_yp_check(&__ypdomain) == 0)