]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
dissect-tool: right-align the partition number
authorLennart Poettering <lennart@poettering.net>
Mon, 4 Dec 2023 17:07:18 +0000 (18:07 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 13 Dec 2023 00:56:48 +0000 (00:56 +0000)
The right-alignment was applied to the wrong column, because neither
ee8e497d249ab2e2df92aa024274f5b817270114 nor
1474d7ac2d308204e599a2502a8b5625bca76bcc updated the column count as
they should have.

src/dissect/dissect.c

index dc753b461cdc4bdd2b93fe5166442aea7c448704..92432b6fedeb03b828c758bc8ba9aecd2ad142f7 100644 (file)
@@ -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;