[libdvdnav-devel] [Git][videolan/libdvdread][master] Create DVDREAD_NAME_MAX
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Sun Jul 19 00:08:22 UTC 2026
Jean-Baptiste Kempf pushed to branch master at VideoLAN / libdvdread
Commits:
1c10c477 by Scott Theisen at 2026-07-19T02:07:51+02:00
Create DVDREAD_NAME_MAX
I have left the uses of sizeof(d_name) as is for now.
- - - - -
1 changed file:
- src/dvdread/dvd_filesystem.h
Changes:
=====================================
src/dvdread/dvd_filesystem.h
=====================================
@@ -42,10 +42,11 @@ typedef __off64_t off64_t;
typedef off_t off64_t;
#endif
+#define DVDREAD_NAME_MAX 255
/* directory entry, only d_name is used by the lib */
typedef struct
{
- char d_name[256];
+ char d_name[DVDREAD_NAME_MAX + 1];
} dvd_dirent_t;
#define DVD_S_IFMT 0170000 /* These bits determine file type. */
View it on GitLab: https://code.videolan.org/videolan/libdvdread/-/commit/1c10c477548566fade42e74caad3102a8623e1e9
--
View it on GitLab: https://code.videolan.org/videolan/libdvdread/-/commit/1c10c477548566fade42e74caad3102a8623e1e9
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the libdvdnav-devel
mailing list