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

CVS: cvs.openbsd.org: src

Module name:	src
Changes by:	brad_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org	2005/01/05 18:28:13

Modified files:
	lib/libc/gen   : Tag: OPENBSD_3_6 getcwd.c 

Log message:
Fix by otto@

Fix handling of memory allocation. Both the initial value of eup
and the new value of bup after realloc() were bogus.  This bug has
been here since the net.2 days.  Additionally, make the initial
size of the malloc'ed pieces of mem more sane and kill a redundant
test before free(). getcwd(3) is now able to return really long
paths.  Problem spotted by Peter Philipp <philipp at scan-plus dot de>