Mercurial > libdvdread4.hg
changeset 8:bfb2ca68d906 src
replaced *struct assignment with call to memcpy(); patch by Erik Hovland org
author | nicodvb |
---|---|
date | Thu, 05 Jun 2008 10:22:07 +0000 |
parents | a481060ec57b |
children | df4a5625b81d |
files | dvd_udf.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/dvd_udf.c Thu Jun 05 10:19:55 2008 +0000 +++ b/dvd_udf.c Thu Jun 05 10:22:07 2008 +0000 @@ -591,13 +591,13 @@ 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; } }