hrev44640 adds 1 changeset to branch 'master' old head: 3c5216179e02f3b711bbac9c021f821ad3628cc7 new head: 4a2ac3c2acae527eedef53c9f28ee9b51a385661 ---------------------------------------------------------------------------- 4a2ac3c: Fix size parameter for ioctl. [ Marcus Overhagen <marcus@xxxxxxxxxxxx> ] ---------------------------------------------------------------------------- Revision: hrev44640 Commit: 4a2ac3c2acae527eedef53c9f28ee9b51a385661 URL: http://cgit.haiku-os.org/haiku/commit/?id=4a2ac3c Author: Marcus Overhagen <marcus@xxxxxxxxxxxx> Date: Fri Sep 14 23:22:34 2012 UTC ---------------------------------------------------------------------------- 1 file changed, 4 insertions(+), 4 deletions(-) src/bin/mkdos/mkdos.cpp | 8 ++++---- ---------------------------------------------------------------------------- diff --git a/src/bin/mkdos/mkdos.cpp b/src/bin/mkdos/mkdos.cpp index 8ab86af..3ca3323 100644 --- a/src/bin/mkdos/mkdos.cpp +++ b/src/bin/mkdos/mkdos.cpp @@ -164,11 +164,11 @@ status_t Initialize(int fatbits, const char *device, const char *label, bool nop device_geometry biosGeometry; device_geometry deviceGeometry; partition_info partitionInfo; - + isRawDevice = 0 != strstr(device, "/raw"); - hasBiosGeometry = B_OK == ioctl(fd, B_GET_BIOS_GEOMETRY, &biosGeometry); - hasDeviceGeometry = B_OK == ioctl(fd, B_GET_GEOMETRY, &deviceGeometry); - hasPartitionInfo = B_OK == ioctl(fd, B_GET_PARTITION_INFO, &partitionInfo); + hasBiosGeometry = B_OK == ioctl(fd, B_GET_BIOS_GEOMETRY, &biosGeometry, sizeof(biosGeometry)); + hasDeviceGeometry = B_OK == ioctl(fd, B_GET_GEOMETRY, &deviceGeometry, sizeof(deviceGeometry)); + hasPartitionInfo = B_OK == ioctl(fd, B_GET_PARTITION_INFO, &partitionInfo, sizeof(partitionInfo)); if (!isRawDevice && !hasBiosGeometry && !hasDeviceGeometry && !hasPartitionInfo) isRawDevice = true;