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:
parent
fac6b4f574
commit
484a11e976
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user