1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-11-27 20:51:17 +00:00

Pass in zero for an offset

This commit is contained in:
Peter Evans 2018-01-03 15:21:00 -06:00
parent fac6b4f574
commit 484a11e976

View File

@ -69,7 +69,7 @@ apple2dd_insert(apple2dd *drive, FILE *stream)
drive->sector_pos = 0; drive->sector_pos = 0;
// Read the data from the stream and write into the memory segment // Read the data from the stream and write into the memory segment
err = vm_segment_fread(drive->data, stream, finfo.st_size); err = vm_segment_fread(drive->data, stream, 0, finfo.st_size);
if (err != OK) { if (err != OK) {
log_critical("Could not read data into disk drive"); log_critical("Could not read data into disk drive");
return err; return err;