diff options
author | Rod Smith <rodsmith@rodsbooks.com> | 2022-04-10 12:57:41 -0400 |
---|---|---|
committer | Rod Smith <rodsmith@rodsbooks.com> | 2022-04-10 12:57:41 -0400 |
commit | b056f3860ad587c01ed9e2a0bae6cc3ba8d41535 (patch) | |
tree | efd849b9f5030f0605d90c29c500d2c6d1d6de50 | |
parent | 8ff360f49eda175142e01d46edbb494cfebe309d (diff) | |
download | sgdisk-b056f3860ad587c01ed9e2a0bae6cc3ba8d41535.tar.gz |
Fix bug that caused cgdisk to report incorrect partition attributes.
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | gptcurses.cc | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -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); |