[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS: cvs.openbsd.org: src
- To: source-changes_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org
- Subject: CVS: cvs.openbsd.org: src
- From: Brad Smith <brad_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org>
- Date: Wed, 5 Jan 2005 20:06:31 -0700 (MST)
CVSROOT: /cvs
Module name: src
Changes by: brad_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org 2005/01/05 20:06:30
Modified files:
lib/libc/gen : Tag: OPENBSD_3_5 getcwd.c
Log message:
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>
Visit your host, monkey.org