diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-02-08 00:34:29 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2020-02-09 20:23:14 +0100 |
commit | 01e854b8d27e22c5dc7fb35726ec8579e7120eeb (patch) | |
tree | 40e341a32633625c83d53abfbee3eea5bb315ded /src/common/utils.c | |
parent | ce21c1e9361e04391dc41463af24d5eb0c493bd1 (diff) | |
download | hercules-01e854b8d27e22c5dc7fb35726ec8579e7120eeb.tar.gz hercules-01e854b8d27e22c5dc7fb35726ec8579e7120eeb.tar.bz2 hercules-01e854b8d27e22c5dc7fb35726ec8579e7120eeb.tar.xz hercules-01e854b8d27e22c5dc7fb35726ec8579e7120eeb.zip |
Define MAX_DIR_PATH for WIN32, too
Diffstat (limited to 'src/common/utils.c')
-rw-r--r-- | src/common/utils.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/common/utils.c b/src/common/utils.c index 12810dd09..084080df7 100644 --- a/src/common/utils.c +++ b/src/common/utils.c @@ -132,7 +132,7 @@ void findfile(const char *p, const char *pat, void (func)(const char *, void *co { WIN32_FIND_DATAA FindFileData; HANDLE hFind; - char tmppath[MAX_PATH+1]; + char tmppath[MAX_DIR_PATH + 1]; const char *path = (p ==NULL)? "." : p; const char *pattern = (pat==NULL)? "" : pat; @@ -178,7 +178,7 @@ bool is_file(const char *path) { nullpo_retr(false, path); - char path_tmp[MAX_PATH + 1]; + char path_tmp[MAX_DIR_PATH + 1]; checkpath(path_tmp, path); @@ -187,8 +187,6 @@ bool is_file(const char *path) #else -#define MAX_DIR_PATH 2048 - static char *checkpath(char *path, const char *srcpath) { // just make sure the char*path is not const |