From 69af053b09a3109eb9c39180839e0155fa504a0f Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Sat, 9 Aug 2014 21:49:01 +0200 Subject: [PATCH] DVDnav: kill a warning on read return --- modules/access/dvdnav.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/access/dvdnav.c b/modules/access/dvdnav.c index 1ba59e20f5..826179ebf8 100644 --- a/modules/access/dvdnav.c +++ b/modules/access/dvdnav.c @@ -1469,7 +1469,7 @@ static int ProbeDVD( const char *psz_name ) /* ISO 9660 volume descriptor */ char iso_dsc[6]; if( lseek( fd, 0x8000 + 1, SEEK_SET ) == -1 - || read( fd, iso_dsc, sizeof (iso_dsc) ) < sizeof (iso_dsc) + || read( fd, iso_dsc, sizeof (iso_dsc) ) < (int)sizeof (iso_dsc) || memcmp( iso_dsc, "CD001\x01", 6 ) ) goto bailout; -- 2.20.1