Author: dquintana Date: Tue Sep 8 15:30:32 2015 New Revision: 69120
URL: http://svn.reactos.org/svn/reactos?rev=69120&view=rev Log: [FATTEN] * Do not allow "/" as a parameter prefix in unixes.
Modified: trunk/reactos/tools/fatten/fatten.c
Modified: trunk/reactos/tools/fatten/fatten.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/fatten/fatten.c?rev=6... ============================================================================== --- trunk/reactos/tools/fatten/fatten.c [iso-8859-1] (original) +++ trunk/reactos/tools/fatten/fatten.c [iso-8859-1] Tue Sep 8 15:30:32 2015 @@ -15,7 +15,8 @@
FATFS g_Filesystem;
-int isMounted = 0; +static int isMounted = 0; +static char buff[32768];
// tool needed by fatfs DWORD get_fattime() @@ -57,7 +58,11 @@
int is_command(const char* parg) { +#if _WIN32 return (parg[0] == '/') || (parg[0] == '-'); +#else + return (parg[0] == '-'); +#endif }
#define NEED_PARAMS(_min_,_max_) \ @@ -175,7 +180,6 @@ { FILE* fe; FIL fv = { 0 }; - char buff[32768]; UINT rdlen = 0; UINT wrlen = 0;
@@ -212,7 +216,6 @@ { FIL fe = { 0 }; FILE* fv; - char buff[32768]; UINT rdlen = 0; UINT wrlen = 0;
@@ -260,7 +263,6 @@ { FIL fe = { 0 }; FIL fv = { 0 }; - char buff[32768]; UINT rdlen = 0; UINT wrlen = 0;