# HG changeset patch # User nicodvb # Date 1212661166 0 # Node ID 7cf80b1cba5a047890f920561909daaa61fe4798 # Parent 587353009f6580b2632412eb648145cf37819321 fixed incorrect type cast; patch by Erik Hovland org diff -r 587353009f65 -r 7cf80b1cba5a libdvdread/dvd_reader.c --- a/libdvdread/dvd_reader.c Thu Jun 05 08:55:12 2008 +0000 +++ b/libdvdread/dvd_reader.c Thu Jun 05 10:19:26 2008 +0000 @@ -1136,7 +1136,7 @@ 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 );