From 7eb1c60ab588f6efde07e196ec11a51a4361f193 Mon Sep 17 00:00:00 2001 From: Antoine Leca Date: Thu, 14 Jul 2016 14:09:14 +0200 Subject: [PATCH] Allow part(8) to make subpartitions above 4G Change-Id: I3fd2c5de7cbb190b857eb34f16463f67a30118a3 --- minix/commands/part/part.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minix/commands/part/part.c b/minix/commands/part/part.c index b130b5237..13e6173fe 100644 --- a/minix/commands/part/part.c +++ b/minix/commands/part/part.c @@ -1578,7 +1578,7 @@ ssize_t boot_readwrite(int rw) { int r = 0; - if (lseek(device, offset * SECTOR_SIZE, SEEK_SET) < 0) + if (lseek(device, (off_t)offset * SECTOR_SIZE, SEEK_SET) < 0) return -1; switch (rw) { -- 2.44.0