diff options
author | Bill Paul <wpaul@FreeBSD.org> | 1996-12-24 17:01:49 +0000 |
---|---|---|
committer | Bill Paul <wpaul@FreeBSD.org> | 1996-12-24 17:01:49 +0000 |
commit | f360d1effefe16f6cbd4d0eeeaae4f3ba340c789 (patch) | |
tree | 4c68fd180f5a6e67f6e589292727564ced1f0736 | |
parent | 4bd24a1ce80fbdc9556ce9295d1538a41c952090 (diff) |
Notes
-rw-r--r-- | lib/libc/net/gethostbynis.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/net/gethostbynis.c b/lib/libc/net/gethostbynis.c index 24be897d37105..c1f15e6e309a0 100644 --- a/lib/libc/net/gethostbynis.c +++ b/lib/libc/net/gethostbynis.c @@ -24,8 +24,8 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char sccsid[] = "@(#)$Id: gethostbynis.c,v 1.3 1996/07/12 18:54:35 jkh Exp $"; -static char rcsid[] = "$Id: gethostbynis.c,v 1.3 1996/07/12 18:54:35 jkh Exp $"; +static char sccsid[] = "@(#)$Id: gethostbynis.c,v 1.4 1996/08/29 20:07:54 peter Exp $"; +static char rcsid[] = "$Id: gethostbynis.c,v 1.4 1996/08/29 20:07:54 peter Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -85,6 +85,7 @@ _gethostbynis(name, map, af) /* avoid potential memory leak */ bcopy((char *)result, (char *)&ypbuf, resultlen); + ypbuf[resultlen] = '\0'; free(result); result = (char *)&ypbuf; |