diff options
author | deraadt <> | 1999-09-03 18:12:31 +0000 |
---|---|---|
committer | deraadt <> | 1999-09-03 18:12:31 +0000 |
commit | 4b9a539e24aa83596bf461e37114bcf66404eca6 (patch) | |
tree | 4a33b8235704a06408eba14fdc140369275950b6 /src | |
parent | 23b5374f8e5e1cf893e358275617ba8b58163ae7 (diff) | |
download | openbsd-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.c | 4 |
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) |
55 | static char rcsid[] = "$OpenBSD: gethostnamadr.c,v 1.36 1999/07/03 18:07:53 jakob Exp $"; | 55 | static 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) |