# HG changeset patch # User nicodvb # Date 1210414026 0 # Node ID 80a6f5839cf7891ea81e798f3dde36a9dd5c83b3 # Parent 638d87492170a5fa6de17e5226329d6c47f9abdb use memcpy() instead of struct assignment. Patch by Erik Hovland org It may not be nice (IIRC strcuct assignment should be totally equivalent) but allegedly some compilers don't work as expected. diff -r 638d87492170 -r 80a6f5839cf7 dvdread/dvd_udf.c --- a/dvdread/dvd_udf.c Fri May 09 21:34:39 2008 +0000 +++ b/dvdread/dvd_udf.c Sat May 10 10:07:06 2008 +0000 @@ -501,7 +501,7 @@ tmpmap.lbn = lbnum; if(GetUDFCache(device, MapCache, lbnum, &tmpmap)) { *FileType = tmpmap.filetype; - *File = tmpmap.file; + memcpy(File, &tmpmap.file, sizeof(tmpmap.file)); return 1; } @@ -514,7 +514,7 @@ if( TagID == 261 ) { UDFFileEntry( LogBlock, FileType, partition, File ); - tmpmap.file = *File; + memcpy(&tmpmap.file, File, sizeof(tmpmap.file)); tmpmap.filetype = *FileType; SetUDFCache(device, MapCache, tmpmap.lbn, &tmpmap); return 1;