diff options
author | Bill Paul <wpaul@FreeBSD.org> | 1996-12-24 17:15:16 +0000 |
---|---|---|
committer | Bill Paul <wpaul@FreeBSD.org> | 1996-12-24 17:15:16 +0000 |
commit | 4213c47f700f61ba676cca17ce895774329b032e (patch) | |
tree | c68d3e7ab596c9d497b69f2f76014bed7be3d0eb | |
parent | ca80cc518a293eff9c2c7c5c8e9fc772217d0674 (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; |