[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] [Mint-cvs] [FreeMiNT CVS] freemint/sys



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