Date: Sun, 18 Sep 2005 17:50:58 +0000 (UTC) From: "Andrey A. Chernov" <ache@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/gen getcwd.c Message-ID: <200509181750.j8IHowIV057592@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
ache 2005-09-18 17:50:58 UTC
FreeBSD src repository
Modified files:
lib/libc/gen getcwd.c
Log:
Just by allocating size*2 bytes we can't be sure that new size will be enough,
so change two
if (size not enough) {
reallocf(size*2);
}
into
while (size not enough) {
reallocf(size*2);
}
Revision Changes Path
1.28 +2 -2 src/lib/libc/gen/getcwd.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509181750.j8IHowIV057592>
