From owner-cvs-lib Tue Dec 24 09:01:51 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id JAA26194 for cvs-lib-outgoing; Tue, 24 Dec 1996 09:01:51 -0800 (PST) Received: (from wpaul@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id JAA26187; Tue, 24 Dec 1996 09:01:50 -0800 (PST) Date: Tue, 24 Dec 1996 09:01:50 -0800 (PST) From: Bill Paul Message-Id: <199612241701.JAA26187@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-lib Subject: cvs commit: src/lib/libc/net gethostbynis.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wpaul 96/12/24 09:01:50 Modified: lib/libc/net gethostbynis.c Log: Another one-liner: remember to NUL terminate local copy of NIS host lookup results. Without this, doing multiple host/addr lookups in a single process yeilds strange results (the buffer is static, and garbage may be left behind from previous lookups). I just noticed this in 2.2-BETA. Unless somebody threatens to chop my hands off with an axe, I'm going to move this to the 2.2-RELENG branch shortly. Revision Changes Path 1.5 +3 -2 src/lib/libc/net/gethostbynis.c