From b056f3860ad587c01ed9e2a0bae6cc3ba8d41535 Mon Sep 17 00:00:00 2001 From: Rod Smith Date: Sun, 10 Apr 2022 12:57:41 -0400 Subject: Fix bug that caused cgdisk to report incorrect partition attributes. --- NEWS | 2 ++ gptcurses.cc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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); -- cgit v1.2.1