From 2382fe75ce29b0df1eda920993aee65a8eb8ba37 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Thu, 9 Dec 2010 02:46:11 +0000 Subject: [PATCH] ok - make it 8192. SVN revision: 55387 --- legacy/eina/src/include/eina_file.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/legacy/eina/src/include/eina_file.h b/legacy/eina/src/include/eina_file.h index 15bc431d01..0a8af5145d 100644 --- a/legacy/eina/src/include/eina_file.h +++ b/legacy/eina/src/include/eina_file.h @@ -69,10 +69,13 @@ typedef enum { /* Why do this? Well PATH_MAX may vary from when eina itself is compiled * to when the app using eina is compiled. exposing the path buffer below * cant safely and portably vary based on how/when you compile. it should - * always be the same for both eina inside ANd for apps outside that use eina - * so define this ti 8192 minus ther other struct bits so that - * Eina_File_Direct_Info can take a nice round 2 pages. */ -#define EINA_PATH_MAX (8192 - (sizeof(size_t) * 3) - sizeof(Eina_File_Type)) + * always be the same for both eina inside AND for apps outside that use eina + * so define this to 8192 - most PATH_MAX values are like 4096 or 1024 (with + * windows i think being 260), so 8192 should cover almost all cases. there + * is a possibility that PATH_MAX could be more than 8192. if anyone spots + * a path_max that is bigger - let us know, but, for now we will assume + * it never happens */ +#define EINA_PATH_MAX 8192 /** * @struct _Eina_File_Direct_Info * A structure to store informations of a path. -- 2.34.1