1998-10-31 06:42:02 +00:00
|
|
|
--- multi.c.orig Mon Jun 1 20:00:25 1998
|
|
|
|
+++ multi.c Fri Oct 30 22:36:03 1998
|
|
|
|
@@ -296,7 +296,7 @@
|
|
|
|
idr = (struct iso_directory_record *) &dirbuff[i];
|
|
|
|
if(idr->length[0] == 0)
|
|
|
|
{
|
|
|
|
- i = (i + SECTOR_SIZE - 1) & ~(SECTOR_SIZE - 1);
|
|
|
|
+ i = ROUND_UP(i);
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
(*nent)++;
|
|
|
|
@@ -324,7 +324,7 @@
|
|
|
|
idr = (struct iso_directory_record *) &dirbuff[i];
|
|
|
|
if(idr->length[0] == 0)
|
|
|
|
{
|
|
|
|
- i = (i + SECTOR_SIZE - 1) & ~(SECTOR_SIZE - 1);
|
|
|
|
+ i = ROUND_UP(i);
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
*pnt = (struct directory_entry *) e_malloc(sizeof(**rtn));
|
|
|
|
@@ -436,8 +436,9 @@
|
|
|
|
*/
|
1997-10-22 06:13:44 +00:00
|
|
|
if( tt_extent != 0 && tt_size != 0 )
|
|
|
|
{
|
1998-10-31 06:42:02 +00:00
|
|
|
- tt_buf = (unsigned char *) e_malloc(tt_size);
|
|
|
|
- readsecs(tt_extent, tt_buf, tt_size/SECTOR_SIZE);
|
|
|
|
+ tt_buf = (unsigned char *) e_malloc(ROUND_UP(tt_size));
|
1997-10-22 06:13:44 +00:00
|
|
|
+ memset(tt_buf, 0, tt_size);
|
1998-10-31 06:42:02 +00:00
|
|
|
+ readsecs(tt_extent, tt_buf, (tt_size + SECTOR_SIZE - 1) / SECTOR_SIZE);
|
1997-05-05 14:19:10 +00:00
|
|
|
|
1997-10-22 06:13:44 +00:00
|
|
|
/*
|
1998-10-31 06:42:02 +00:00
|
|
|
* Loop through the file, examine each entry, and attempt to
|