Skip to content

Commit

Permalink
fix(util): 'struct dirent' has no member named 'd_reclen' (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-soft committed May 5, 2018
1 parent a177292 commit 0416c42
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/util/dirent.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 0416c42

Please sign in to comment.