From mint-bounce@lists.fishpool.fi Fri Nov 21 13:28:11 2008 X-Authentication-Warning: antyk.obta.uw.edu.pl: draco owned process doing -bs Date: Fri, 21 Nov 2008 18:58:23 +0100 (CET) From: "Konrad M. Kokoszkiewicz" To: mint@fishpool.com Subject: Re: [MiNT] [Mint-cvs] [FreeMiNT CVS] freemint/sys In-Reply-To: <200811210831.mAL8Vm0s030171@mail.sparemint.org> Message-ID: <20081121185503.P65867@antyk.obta.uw.edu.pl> References: <200811210831.mAL8Vm0s030171@mail.sparemint.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: draco@obta.uw.edu.pl Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: Die 21.11.08 (08:31) cz-bobek-lists-mint-cvs-bounces@lists.bobek.cz scripsit: > Update of /mint/freemint/sys > In directory mail.sparemint.org:/tmp/cvs-serv30159/sys > > Modified Files: > Tag: freemint-enhancements > tosfs.c > Log Message: > Use PATH_MAX > > Index: freemint/sys/tosfs.c > diff -u freemint/sys/tosfs.c:1.11 freemint/sys/tosfs.c:1.11.4.1 > --- freemint/sys/tosfs.c:1.11 Mon Mar 19 16:59:51 2007 > +++ freemint/sys/tosfs.c Fri Nov 21 03:31:45 2008 > @@ -1,5 +1,5 @@ > /* > - * $Id: tosfs.c,v 1.11 2007/03/19 20:59:51 landemarre Exp $ > + * $Id: tosfs.c,v 1.11.4.1 2008/11/21 08:31:45 alanh Exp $ > * > * This file has been modified as part of the FreeMiNT project. See > * the file Changes.MH for details and dates. > @@ -1007,7 +1007,7 @@ > static long _cdecl > tos_rename(fcookie *olddir, char *oldname, fcookie *newdir, const char *newname) > { > - char newbuf[128]; > + char newbuf[PATH_MAX]; I am not sure, if this change makes sense. Correct me, if I am wrong, but this is the old tosfs module, which depends on the GEMDOS in ROM. And the GEMDOS in ROM doesn't know about MiNT's PATH_MAX. So maybe it would be better to revert this (and the best it would be to remove the module, which is useless since fatfs has been written). Pozdrawiam KMK