mirror of
https://github.com/git/git
synced 2024-08-27 19:49:21 +00:00
Win32 dirent: change FILENAME_MAX to MAX_PATH
FILENAME_MAX and MAX_PATH are both 260 on Windows, however, MAX_PATH is used throughout the other Win32 code in Git, and also defines the length of file name buffers in the Win32 API (e.g. WIN32_FIND_DATA.cFileName, from which we're copying the dirent data). Signed-off-by: Karsten Blees <blees@dcon.de> Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
This commit is contained in:
parent
40f1ff5802
commit
cb1769fc53
|
@ -9,8 +9,8 @@ typedef struct DIR DIR;
|
|||
#define DT_LNK 3
|
||||
|
||||
struct dirent {
|
||||
char d_name[FILENAME_MAX]; /* File name. */
|
||||
unsigned char d_type; /* file type to prevent lstat after readdir */
|
||||
char d_name[MAX_PATH]; /* file name */
|
||||
};
|
||||
|
||||
DIR *opendir(const char *dirname);
|
||||
|
|
Loading…
Reference in a new issue