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