summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);