Skip to content

Commit 0416c42

Browse files
committedMay 5, 2018
fix(util): 'struct dirent' has no member named 'd_reclen' (#141)
1 parent a177292 commit 0416c42

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎src/util/dirent.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,7 @@ LCUI_DirEntry* LCUI_ReadDirW( LCUI_Dir *dir )
143143
return NULL;
144144
}
145145
dir->entry.dirent = *d;
146-
LCUI_DecodeString( dir->entry.name, d->d_name,
147-
d->d_reclen + 1, ENCODING_UTF8 );
146+
LCUI_DecodeString( dir->entry.name, d->d_name, 0, ENCODING_UTF8 );
148147
return &dir->entry;
149148
#endif
150149
}

0 commit comments

Comments
 (0)
Please sign in to comment.