From mint-bounce@lists.fishpool.fi Tue Jan 22 17:32:37 2008 X-Original-To: fnaumann@mail.boerde.de Delivered-To: fnaumann@mail.boerde.de Subject: Re: [MiNT] MiNTlib getcwd problem & fix From: Alan Hourihane To: mint In-Reply-To: <1199716375.9383.2.camel@localhost> References: <1199716375.9383.2.camel@localhost> Content-Type: text/plain Date: Mon, 07 Jan 2008 14:48:50 +0000 Message-Id: <1199717330.9383.5.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 7bit X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-To: mint-bounce@lists.fishpool.fi X-original-sender: alanh@fairlite.demon.co.uk Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: X-Virus-Scanned: by amavisd-new at relay.boerde.de X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on relay.boerde.de X-Spam-Status: No, hits=-1.0 tagged_above=-50.5 required=7.0 tests=AWL, BAYES_00 X-Spam-Level: Status: X-Status: X-Keywords: On Mon, 2008-01-07 at 14:32 +0000, Alan Hourihane wrote: > Here's a fix to mintlib's getcwd function. > > Essentially when asking for a very long filename then the dos2unx > function will quite happily convert the path, but wouldn't error on > longer paths than was possible in the provided buffer. Oh, and it should probably be done in the unx2dos() function too with similar checking. Alan.