Merge commit 'bg/alshopov/master'
[gitweb.git] / compat / win32 / dirent.h
index 8838cd61fc282b3713db76e088130f82b6c6fe33..058207e4bfed628376d94f8002278317b5c65074 100644 (file)
@@ -10,7 +10,7 @@ typedef struct DIR DIR;
 
 struct dirent {
        unsigned char d_type;      /* file type to prevent lstat after readdir */
-       char d_name[MAX_PATH];     /* file name */
+       char d_name[MAX_PATH * 3]; /* file name (* 3 for UTF-8 conversion) */
 };
 
 DIR *opendir(const char *dirname);