comparison libdvdread/dvd_udf.c @ 374:9ab286814761 src

memzero ICB before using it; patch by Erik Hovland org
author nicodvb
date Thu, 05 Jun 2008 10:24:24 +0000
parents 78e68cde11cf
children
comparison
equal deleted inserted replaced
373:78e68cde11cf 374:9ab286814761
782 uint8_t filetype; 782 uint8_t filetype;
783 783
784 *filesize = 0; 784 *filesize = 0;
785 tokenline[0] = '\0'; 785 tokenline[0] = '\0';
786 strncat(tokenline, filename, MAX_UDF_FILE_NAME_LEN - 1); 786 strncat(tokenline, filename, MAX_UDF_FILE_NAME_LEN - 1);
787 memset(&ICB, 0, sizeof(ICB));
787 788
788 if(!(GetUDFCache(device, PartitionCache, 0, &partition) && 789 if(!(GetUDFCache(device, PartitionCache, 0, &partition) &&
789 GetUDFCache(device, RootICBCache, 0, &RootICB))) { 790 GetUDFCache(device, RootICBCache, 0, &RootICB))) {
790 /* Find partition, 0 is the standard location for DVD Video.*/ 791 /* Find partition, 0 is the standard location for DVD Video.*/
791 if( !UDFFindPartition( device, 0, &partition ) ) return 0; 792 if( !UDFFindPartition( device, 0, &partition ) ) return 0;