From 0416c421f0a86560462c189e6545e067ab2c0f55 Mon Sep 17 00:00:00 2001 From: Liu Chao Date: Tue, 27 Mar 2018 20:53:08 +0800 Subject: [PATCH] fix(util): 'struct dirent' has no member named 'd_reclen' (#141) --- src/util/dirent.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/util/dirent.c b/src/util/dirent.c index b609ab6f6..3901a1077 100644 --- a/src/util/dirent.c +++ b/src/util/dirent.c @@ -143,8 +143,7 @@ LCUI_DirEntry* LCUI_ReadDirW( LCUI_Dir *dir ) return NULL; } dir->entry.dirent = *d; - LCUI_DecodeString( dir->entry.name, d->d_name, - d->d_reclen + 1, ENCODING_UTF8 ); + LCUI_DecodeString( dir->entry.name, d->d_name, 0, ENCODING_UTF8 ); return &dir->entry; #endif }