[DVDnav-discuss] r1066 - trunk/libdvdnav/src/libdvdread/dvd_reader.c

nicodvb subversion at mplayerhq.hu
Thu Jun 5 12:19:26 CEST 2008


Author: nicodvb
Date: Thu Jun  5 12:19:26 2008
New Revision: 1066

Log:
fixed incorrect type cast; patch by Erik Hovland org

Modified:
   trunk/libdvdnav/src/libdvdread/dvd_reader.c

Modified: trunk/libdvdnav/src/libdvdread/dvd_reader.c
==============================================================================
--- trunk/libdvdnav/src/libdvdread/dvd_reader.c	(original)
+++ trunk/libdvdnav/src/libdvdread/dvd_reader.c	Thu Jun  5 12:19:26 2008
@@ -1136,7 +1136,7 @@ int DVDDiscID( dvd_reader_t *dvd, unsign
 	    ssize_t bytes_read;
 	    size_t file_size = dvd_file->filesize * DVD_VIDEO_LB_LEN;
 	    char *buffer_base = malloc( file_size + 2048 );
-	    char *buffer = (unsigned char *)(((uintptr_t)buffer_base & ~((uintptr_t)2047)) + 2048);
+	    char *buffer = (char *)(((uintptr_t)buffer_base & ~((uintptr_t)2047)) + 2048);
 	    
 	    if( buffer_base == NULL ) {
 	        DVDCloseFile( dvd_file );



More information about the DVDnav-discuss mailing list