summaryrefslogtreecommitdiff
path: root/gptpart.cc
diff options
context:
space:
mode:
authorsrs5694 <srs5694@users.sourceforge.net>2010-02-11 22:22:22 -0500
committersrs5694 <srs5694@users.sourceforge.net>2010-02-11 22:22:22 -0500
commitcb76c673eeb84344887715d36d44b799042be5a5 (patch)
treec727bc4a638968b1be3812b567c34bd4c4f76132 /gptpart.cc
parent6699b01eda84d24bfaf80ad725304fef2b0e1b2a (diff)
downloadsgdisk-cb76c673eeb84344887715d36d44b799042be5a5.tar.gz
A few minor bug fixes; backup function now accepts dd output of MBR,
main header, and main partition table, as well as gdisk-generated backups.
Diffstat (limited to 'gptpart.cc')
-rw-r--r--gptpart.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/gptpart.cc b/gptpart.cc
index 1cba0a0..283eb3d 100644
--- a/gptpart.cc
+++ b/gptpart.cc
@@ -145,8 +145,9 @@ void GPTPart::ShowSummary(int partNum, uint32_t blockSize) {
cout << firstLBA << " ";
cout.width(14);
cout << lastLBA << " ";
- cout << BytesToSI(blockSize * (lastLBA - firstLBA + 1)) << " ";
- for (i = 0; i < 9 - (int) sizeInSI.length(); i++) cout << " ";
+ cout << BytesToSI(blockSize * (lastLBA - firstLBA + 1)) << " ";
+ for (i = 0; i < 10 - (int) sizeInSI.length(); i++)
+ cout << " ";
cout.fill('0');
cout.width(4);
cout.setf(ios::uppercase);