summaryrefslogtreecommitdiff
path: root/sgdisk.cc
diff options
context:
space:
mode:
authorsrs5694 <srs5694@users.sourceforge.net>2011-03-15 23:53:31 -0400
committersrs5694 <srs5694@users.sourceforge.net>2011-03-15 23:53:31 -0400
commit01f7f08624f0c942001977415214a578621f6495 (patch)
tree475731ab0492aee501298e01559dc804658c0275 /sgdisk.cc
parent9a46b042c57144c26a67781d335e6ba4128382d2 (diff)
downloadsgdisk-01f7f08624f0c942001977415214a578621f6495.tar.gz
Second patchset from Florian & a few other small changes
Diffstat (limited to 'sgdisk.cc')
-rw-r--r--sgdisk.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sgdisk.cc b/sgdisk.cc
index 1f3e792..2ae8767 100644
--- a/sgdisk.cc
+++ b/sgdisk.cc
@@ -266,8 +266,8 @@ int main(int argc, char *argv[]) {
partNum = theGPT.FindFirstFreePart();
low = theGPT.FindFirstInLargest();
high = theGPT.FindLastInFree(low);
- startSector = SIToInt(GetString(newPartInfo, 2), sSize, low, high, low);
- endSector = SIToInt(GetString(newPartInfo, 3), sSize, startSector, high, high);
+ startSector = IeeeToInt(GetString(newPartInfo, 2), sSize, low, high, low);
+ endSector = IeeeToInt(GetString(newPartInfo, 3), sSize, startSector, high, high);
if (theGPT.CreatePartition(partNum, startSector, endSector)) {
saveData = 1;
} else {