Skip to content
  • Akira TAGOH's avatar
    Rework again to copy the struct dirent · 97cf7ec4
    Akira TAGOH authored
    Assuming that d_name is the last member of struct dirent.
    In POSIX, the maximum length of d_name is defined as NAME_MAX
    or FILENAME_MAX though, that assumption may be wrong on some
    platforms where defines d_name as the flexible array member
    and allocate the minimum memory to store d_name.
    
    Patch from Raimund Steger
    97cf7ec4