Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-11-26 08:07:38 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-11-26 08:07:38 +0400
commit6736576f6d576f9a06db14a76193c0c237e5cba1 (patch)
tree51bc0a37f1504dea826260340e80c085392d87aa /source/blender/blenlib/intern/storage.c
parentaf7288c407fbb4bb462f509d5782b660a29c4883 (diff)
replace FILE_MAXDIR + FILE_MAXFILE with FILE_MAX
Diffstat (limited to 'source/blender/blenlib/intern/storage.c')
-rw-r--r--source/blender/blenlib/intern/storage.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenlib/intern/storage.c b/source/blender/blenlib/intern/storage.c
index 86095e6b909..1ef254d355f 100644
--- a/source/blender/blenlib/intern/storage.c
+++ b/source/blender/blenlib/intern/storage.c
@@ -442,18 +442,18 @@ int BLI_exists(const char *name)
/* in Windows stat doesn't recognize dir ending on a slash
To not break code where the ending slash is expected we
don't mess with the argument name directly here - elubie */
- char tmp[FILE_MAXDIR+FILE_MAXFILE];
+ char tmp[FILE_MAX];
int len, res;
- BLI_strncpy(tmp, name, FILE_MAXDIR+FILE_MAXFILE);
+ BLI_strncpy(tmp, name, FILE_MAX);
len = strlen(tmp);
if (len > 3 && ( tmp[len-1]=='\\' || tmp[len-1]=='/') ) tmp[len-1] = '\0';
res = _stat(tmp, &st);
if (res == -1) return(0);
#elif defined(__MINGW32__)
struct _stati64 st;
- char tmp[FILE_MAXDIR+FILE_MAXFILE];
+ char tmp[FILE_MAX];
int len, res;
- BLI_strncpy(tmp, name, FILE_MAXDIR+FILE_MAXFILE);
+ BLI_strncpy(tmp, name, FILE_MAX);
len = strlen(tmp);
if (len > 3 && ( tmp[len-1]=='\\' || tmp[len-1]=='/') ) tmp[len-1] = '\0';
res = _stati64(tmp, &st);