From owner-cvs-src@FreeBSD.ORG Sun Sep 18 17:50:59 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 28B5216A41F; Sun, 18 Sep 2005 17:50:59 +0000 (GMT) (envelope-from ache@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D68C643D45; Sun, 18 Sep 2005 17:50:58 +0000 (GMT) (envelope-from ache@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j8IHowSl057593; Sun, 18 Sep 2005 17:50:58 GMT (envelope-from ache@repoman.freebsd.org) Received: (from ache@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j8IHowIV057592; Sun, 18 Sep 2005 17:50:58 GMT (envelope-from ache) Message-Id: <200509181750.j8IHowIV057592@repoman.freebsd.org> From: "Andrey A. Chernov" Date: Sun, 18 Sep 2005 17:50:58 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/lib/libc/gen getcwd.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Sep 2005 17:50:59 -0000 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