#6 Portable use of struct dirent

closed-fixed
nobody
None
5
2007-01-08
2007-01-08
Christian Biere
No

The field "d_reclen" of struct dirent is non-standard and it also wastes a few bytes of memory to use this for allocating memory for composing the pathname as it refers to the complete record not just the name length. The attached patch replaces it with strlen(entry->d_name).

Discussion

  •  
    Attachments
  • Logged In: YES
    user_id=643728
    Originator: YES

    I see it's already fixed in 3.2.3. I'd have checked CVS but there's none to check.

     
    • status: open --> closed-fixed