Allow part(8) to make subpartitions above 4G

This commit is contained in:
Antoine Leca 2016-07-14 14:09:14 +02:00
parent 36dcc4a4a9
commit 4a431a2060

View File

@ -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) {