# HG changeset patch # User nicodvb # Date 1212661195 0 # Node ID a481060ec57b7fa8f4331ba2b2cb9d2e6c7f090c # Parent e5663591d13caa3648eaedb6aaead9456ed7a89e fixed incorrect type cast; patch by Erik Hovland org diff -r e5663591d13c -r a481060ec57b dvd_reader.c --- a/dvd_reader.c Thu Jun 05 08:52:00 2008 +0000 +++ b/dvd_reader.c Thu Jun 05 10:19:55 2008 +0000 @@ -1138,7 +1138,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 );