[libdvdnav-devel] [Git][videolan/libdvdread][master] dvd_reader: fix type of string length variable
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Sun Aug 10 19:46:13 UTC 2025
Jean-Baptiste Kempf pushed to branch master at VideoLAN / libdvdread
Commits:
547ed98a by Steve Lhomme at 2025-08-10T19:45:46+00:00
dvd_reader: fix type of string length variable
- - - - -
1 changed file:
- src/dvd_reader.c
Changes:
=====================================
src/dvd_reader.c
=====================================
@@ -482,10 +482,6 @@ static dvd_reader_t *DVDOpenCommon( void *priv,
if(logcb)
ctx->logcb = *logcb;
-#if defined(_WIN32) || defined(__OS2__)
- int len;
-#endif
-
/* Try to open DVD using stream_cb functions */
if( priv != NULL && stream_cb != NULL )
{
@@ -512,7 +508,7 @@ static dvd_reader_t *DVDOpenCommon( void *priv,
#if defined(_WIN32) || defined(__OS2__)
/* Strip off the trailing \ if it is not a drive */
- len = strlen(path);
+ size_t len = strlen(path);
if ((len > 1) &&
(path[len - 1] == '\\') &&
(path[len - 2] != ':'))
View it on GitLab: https://code.videolan.org/videolan/libdvdread/-/commit/547ed98aedd96fe510909ad84fc4444c1f05ecf8
--
View it on GitLab: https://code.videolan.org/videolan/libdvdread/-/commit/547ed98aedd96fe510909ad84fc4444c1f05ecf8
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the libdvdnav-devel
mailing list