summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRod Smith <rodsmith@rodsbooks.com>2022-04-10 12:57:41 -0400
committerRod Smith <rodsmith@rodsbooks.com>2022-04-10 12:57:41 -0400
commitb056f3860ad587c01ed9e2a0bae6cc3ba8d41535 (patch)
treeefd849b9f5030f0605d90c29c500d2c6d1d6de50
parent8ff360f49eda175142e01d46edbb494cfebe309d (diff)
downloadsgdisk-b056f3860ad587c01ed9e2a0bae6cc3ba8d41535.tar.gz
Fix bug that caused cgdisk to report incorrect partition attributes.
-rw-r--r--NEWS2
-rw-r--r--gptcurses.cc2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index b797010..b2c1eb3 100644
--- a/NEWS
+++ b/NEWS
@@ -19,6 +19,8 @@
- Fixed build problems with recent versions of ncurses.
+- Fixed bug that caused cgdisk to report incorrect partition attributes.
+
1.0.8 (6/9/2021):
-----------------
diff --git a/gptcurses.cc b/gptcurses.cc
index c5fe24e..8b0ae91 100644
--- a/gptcurses.cc
+++ b/gptcurses.cc
@@ -339,7 +339,7 @@ void GPTDataCurses::ShowInfo(int partNum) {
BytesToIeee(partitions[partNum].GetLastLBA(), blockSize).c_str());
size = partitions[partNum].GetLastLBA() - partitions[partNum].GetFirstLBA() + 1;
printw("Partition size: %lld sectors (%s)\n", size, BytesToIeee(size, blockSize).c_str());
- printw("Attribute flags: %016x\n", partitions[partNum].GetAttributes().GetAttributes());
+ printw("Attribute flags: %016llx\n", partitions[partNum].GetAttributes().GetAttributes());
#ifdef USE_UTF16
partitions[partNum].GetDescription().extract(0, NAME_SIZE , temp, NAME_SIZE );
printw("Partition name: '%s'\n", temp);