glib/glib/dirent
Philip Withnall 496135c569 dirent: Add trailing nul delimiter to FILENAME_MAX
`FILENAME_MAX` is not guaranteed to include a trailing nul delimiter, so
explicitly add one.

See
https://www.gnu.org/software/libc/manual/html_node/Limits-for-Files.html:
`PATH_MAX` is explicitly defined to include a nul delimiter;
`FILENAME_MAX` is not.

See also https://twitter.com/pid_eins/status/1357008940886818822.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
2021-04-19 19:23:10 +01:00
..
dirent-zip MSVC: Move dirent implementation to glib/dirent/ 2019-01-16 10:24:11 -05:00
dirent.c dirent: Simplify a memset() call 2021-04-19 19:22:33 +01:00
dirent.h dirent: Add trailing nul delimiter to FILENAME_MAX 2021-04-19 19:23:10 +01:00
README MSVC: Move dirent implementation to glib/dirent/ 2019-01-16 10:24:11 -05:00
wdirent.c MSVC: Move dirent implementation to glib/dirent/ 2019-01-16 10:24:11 -05:00

This is dirent from mingw-runtime-3.3, separated for MSVC user's
benefit.