From: Karel Zak Date: Fri, 31 Jan 2014 09:35:53 +0000 (+0100) Subject: cfdisk: use real partno X-Git-Tag: v2.25-rc1~489 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d80921acdf0c077a49c2eca38f3dc88d3cd76ee3;p=thirdparty%2Futil-linux.git cfdisk: use real partno Signed-off-by: Karel Zak --- diff --git a/fdisks/cfdisk.c b/fdisks/cfdisk.c index f40272a65e..adc6c3c965 100644 --- a/fdisks/cfdisk.c +++ b/fdisks/cfdisk.c @@ -622,8 +622,8 @@ static int menu_cb_main(struct cfdisk *cf, int key) assert(cf->cxt); assert(key); - n = cf->lines_idx; /* the current partition */ pa = get_current_partition(cf); + n = fdisk_partition_get_partno(pa); switch (key) { case 'b': /* Bootable flag */