From: Lennart Poettering Date: Mon, 4 Dec 2023 17:07:18 +0000 (+0100) Subject: dissect-tool: right-align the partition number X-Git-Tag: v256-rc1~1506 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=748e87a7911813d64e34f2366df842b210a27f11;p=thirdparty%2Fsystemd.git dissect-tool: right-align the partition number The right-alignment was applied to the wrong column, because neither ee8e497d249ab2e2df92aa024274f5b817270114 nor 1474d7ac2d308204e599a2502a8b5625bca76bcc updated the column count as they should have. --- diff --git a/src/dissect/dissect.c b/src/dissect/dissect.c index dc753b461cd..92432b6fede 100644 --- a/src/dissect/dissect.c +++ b/src/dissect/dissect.c @@ -960,7 +960,7 @@ static int action_dissect(DissectedImage *m, LoopDevice *d) { return log_oom(); table_set_ersatz_string(t, TABLE_ERSATZ_DASH); - (void) table_set_align_percent(t, table_get_cell(t, 0, 7), 100); + (void) table_set_align_percent(t, table_get_cell(t, 0, 9), 100); for (PartitionDesignator i = 0; i < _PARTITION_DESIGNATOR_MAX; i++) { DissectedPartition *p = m->partitions + i;