aboutsummaryrefslogtreecommitdiff
path: root/bsd.cc
diff options
context:
space:
mode:
authorsrs5694 <srs5694@users.sourceforge.net>2010-02-04 00:55:30 -0500
committersrs5694 <srs5694@users.sourceforge.net>2010-02-04 00:55:30 -0500
commit6699b01eda84d24bfaf80ad725304fef2b0e1b2a (patch)
treed1bdfd45d748bdc1a87b45dcd043c51e75ab6945 /bsd.cc
parent20e2a97ae67f2bbe31b354255671b3aed3793ee3 (diff)
downloadgptfdisk-6699b01eda84d24bfaf80ad725304fef2b0e1b2a.tar.gz
Version 0.6.3 release. Big-endian bug fix, new GUID generation method,
architectural changes.
Diffstat (limited to 'bsd.cc')
-rw-r--r--bsd.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/bsd.cc b/bsd.cc
index 75dca60..f1d1ade 100644
--- a/bsd.cc
+++ b/bsd.cc
@@ -291,7 +291,7 @@ GPTPart BSDData::AsGPT(int i) {
guid.SetFirstLBA(sectorOne);
guid.SetLastLBA(sectorEnd);
// Now set a random unique GUID for the partition....
- guid.SetUniqueGUID(1);
+ guid.RandomizeUniqueGUID();
// ... zero out the attributes and name fields....
guid.SetAttributes(UINT64_C(0));
// Most BSD disklabel type codes seem to be archaic or rare.
@@ -321,7 +321,7 @@ GPTPart BSDData::AsGPT(int i) {
guid.SetType(0x0700); break;
} // switch
// Set the partition name to the name of the type code....
- guid.SetName(guid.GetNameType());
+ guid.SetName(guid.GetTypeName());
} // if
return guid;
} // BSDData::AsGPT()