From owner-cvs-lib Fri Dec 27 11:28:52 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA04321 for cvs-lib-outgoing; Fri, 27 Dec 1996 11:28:52 -0800 (PST) Received: (from wpaul@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA04314; Fri, 27 Dec 1996 11:28:50 -0800 (PST) Date: Fri, 27 Dec 1996 11:28:50 -0800 (PST) From: Bill Paul Message-Id: <199612271928.LAA04314@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-lib Subject: cvs commit: src/lib/libc/gen getpwent.c getgrent.c getnetgrent.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wpaul 96/12/27 11:28:49 Modified: lib/libc/gen getpwent.c getgrent.c getnetgrent.c Log: Small yet significant tweaks/cleanups: - getpwent: o adjunctbuf should be NUL terminated after copying o _pw_breakout_yp() needs to know the length of the buffer returned from YP so it can properly NUL terminate its local buffer. - getgrent: o YP buffers should be YPMAXRECORD + 2 bytes long and NUL terminated. (Previously they were hardcoded to 1024 bytes.) - getnetgrent: o YP data should be copied with snprintf(), not sprintf() These are 2.2 candidates. I will wait a few days to make sure these don't break anything and then, if there are no objections, move them to the 2.2 branch. Revision Changes Path 1.37 +7 -5 src/lib/libc/gen/getpwent.c 1.15 +5 -3 src/lib/libc/gen/getgrent.c 1.19 +2 -2 src/lib/libc/gen/getnetgrent.c