Advertisement
popsdeco

iso_tool ciso.c bug

Dec 6th, 2011
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1.   max_sector = header.total_bytes / header.block_size - 1;
  2. -  start_sec = pos / SECTOR_SIZE;
  3. -  end_sec = (pos + size - 1) / SECTOR_SIZE;
  4. +  start_sec = pos / header.block_size;
  5. +  end_sec = (pos + size - 1) / header.block_size;
  6.   sector_num = start_sec;
  7.  
  8.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement