[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS: cvs.openbsd.org: src



CVSROOT:	/cvs
Module name:	src
Changes by:	millert_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org	2004/01/03 11:30:39

Modified files:
	usr.sbin/user  : user.c 

Log message:
Replace bogus use of fgetln() (which doesn't NUL-terminate strings)
with fgets() (which does).  Using fgetln() doesn't make a huge amount
of sense since passwd entries are required to be short and mustn't contain
NULs.  This also fixes a bus error on sparc64 (caused by passing a pointer
to an int when a pointer to size_t was expected) found by pvalchev_(_at_)__(_dot_)_
Tested and OK pvalchev@



Visit your host, monkey.org