[DVDnav-discuss] r1069 - trunk/libdvdnav/src/libdvdread/dvd_udf.c
nicodvb
subversion at mplayerhq.hu
Thu Jun 5 12:22:54 CEST 2008
Author: nicodvb
Date: Thu Jun 5 12:22:53 2008
New Revision: 1069
Log:
replaced *struct assignment with call to memcpy(); patch by Erik Hovland org
Modified:
trunk/libdvdnav/src/libdvdread/dvd_udf.c
Modified: trunk/libdvdnav/src/libdvdread/dvd_udf.c
==============================================================================
--- trunk/libdvdnav/src/libdvdread/dvd_udf.c (original)
+++ trunk/libdvdnav/src/libdvdread/dvd_udf.c Thu Jun 5 12:22:53 2008
@@ -591,13 +591,13 @@ static int UDFScanDir( dvd_reader_t *dev
struct AD tmpFile;
if( !strcasecmp( FileName, filename ) ) {
- *FileICB = tmpICB;
+ memcpy(FileICB, &tmpICB, sizeof(tmpICB));
found = 1;
}
UDFMapICB(device, tmpICB, &tmpFiletype, partition, &tmpFile);
} else {
if( !strcasecmp( FileName, filename ) ) {
- *FileICB = tmpICB;
+ memcpy(FileICB, &tmpICB, sizeof(tmpICB));
return 1;
}
}
More information about the DVDnav-discuss
mailing list