summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/tools/imgtool/iflopimg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/tools/imgtool/iflopimg.c')
-rw-r--r--src/mess/tools/imgtool/iflopimg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mess/tools/imgtool/iflopimg.c b/src/mess/tools/imgtool/iflopimg.c
index 765245cb8ff..4249c6120b4 100644
--- a/src/mess/tools/imgtool/iflopimg.c
+++ b/src/mess/tools/imgtool/iflopimg.c
@@ -318,15 +318,15 @@ static imgtoolerr_t imgtool_floppy_transfer_sector_tofrom_stream(imgtool_image *
if (direction)
{
- err = floppy_read_sector(floppy, head, track, sector, offset, buffer, length);
+ err = floppy_read_sector(floppy, head, track, sector, offset, &buffer[0], length);
if (err)
goto done;
- stream_write(f, buffer, length);
+ stream_write(f, &buffer[0], length);
}
else
{
- stream_read(f, buffer, length);
- err = floppy_write_sector(floppy, head, track, sector, offset, buffer, length, 0); /* TODO: pass ddam argument from imgtool */
+ stream_read(f, &buffer[0], length);
+ err = floppy_write_sector(floppy, head, track, sector, offset, &buffer[0], length, 0); /* TODO: pass ddam argument from imgtool */
if (err)
goto done;
}