]> err.no Git - util-linux/commit
cfdisk: fix n+1 bug in error message
authorKarel Zak <kzak@redhat.com>
Mon, 9 Aug 2010 09:32:46 +0000 (11:32 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 9 Aug 2010 09:32:46 +0000 (11:32 +0200)
commit3d9440ee18f27ed3412d3337c042834138c5b523
tree0546c1b729487b87a93d257ff58e135a7c37379b
parent4c50b0b3b3bdddd8ec1871980adad0f95df7b688
cfdisk: fix n+1 bug in error message

 # cfdisk -Ps <devname>

correctly uses 1..N range for partition numbers, unfortunately some
error messages use 0..N. This is confusing.

Reported-by: J B <jb.1234abcd@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
fdisk/cfdisk.c