* libparted/labels/gpt.c (gpt_get_max_supported_partition_count):
Convert ->SizeOfPartitionEntry from little-endian to CPU endianness
here, too. This is along the same lines as commit
d6e9b3bb, but
with the difference that this code is not reachable via the
command-line interface.
return false;
*max_n = (disk->dev->sector_size * (pth->FirstUsableLBA - 2)
- / pth->SizeOfPartitionEntry);
+ / PED_LE32_TO_CPU (pth->SizeOfPartitionEntry));
pth_free (pth);
return true;
}