From: Karel Zak Date: Tue, 14 Oct 2014 15:26:27 +0000 (+0200) Subject: libfdisk: (gpt) fix N-1 error for partition size X-Git-Tag: v2.26-rc1~310 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c344037f0df8130cddd332ba78da4915e03fa68;p=thirdparty%2Futil-linux.git libfdisk: (gpt) fix N-1 error for partition size The same bug like on dos.c, the limits for the "last sector" dialog are already with "-1". Signed-off-by: Karel Zak --- diff --git a/libfdisk/src/gpt.c b/libfdisk/src/gpt.c index f23e7f6e87..e695bea9d3 100644 --- a/libfdisk/src/gpt.c +++ b/libfdisk/src/gpt.c @@ -2031,8 +2031,7 @@ static int gpt_add_partition( if (user_l + (cxt->grain / cxt->sector_size) > dflt_l) user_l = dflt_l; */ - } else - user_l -= 1; + } if (user_l > user_f && user_l <= disk_l) break;