diff --git a/sbin/fdisk_pc98/fdisk.c b/sbin/fdisk_pc98/fdisk.c index 9fd39c443fa..8b8ce19f678 100644 --- a/sbin/fdisk_pc98/fdisk.c +++ b/sbin/fdisk_pc98/fdisk.c @@ -904,7 +904,7 @@ write_disk(off_t sector, void *buf) #ifdef PC98 if (fdw != -1) { - return ioctl(fdw, DIOCGPC98, buf); + return ioctl(fdw, DIOCSPC98, buf); } else { lseek(fd,(sector * 512), 0); /* write out in the size that the read_disk found worked */