[DVDnav-discuss] r1068 - trunk/libdvdread/src/dvd_udf.c
nicodvb
subversion at mplayerhq.hu
Thu Jun 5 12:22:07 CEST 2008
Author: nicodvb
Date: Thu Jun 5 12:22:07 2008
New Revision: 1068
Log:
replaced *struct assignment with call to memcpy(); patch by Erik Hovland org
Modified:
trunk/libdvdread/src/dvd_udf.c
Modified: trunk/libdvdread/src/dvd_udf.c
==============================================================================
--- trunk/libdvdread/src/dvd_udf.c (original)
+++ trunk/libdvdread/src/dvd_udf.c Thu Jun 5 12:22:07 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