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

CVS Update: src



CVSROOT:	/cvs
Module name:	src
Repository:	src/lib/libc/gen/
Changes by:	odin@akbar.cleannorth.org.	05/01/12 18:16:40

Modified files:
	src/lib/libc/gen/: getcwd.c 

Log message:
	From OPENBSD_3_6
	
	MFC:
	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>


Main Menu:

Site Tools:


Here, spammer, have some addresses.