fdisk: avoid overflow in "mega/gigabytes" calculation, code shrink
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 4 Oct 2019 14:45:04 +0000 (16:45 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 4 Oct 2019 14:45:04 +0000 (16:45 +0200)
commitd8e4ce05039a89c2e0b41f008d74a83db45f2287
tree147536311a6c19a12b331b02dd6b2819b48fae23
parent65741d004ee91c5a710559ae4f1664f25009255e
fdisk: avoid overflow in "mega/gigabytes" calculation, code shrink

function                                             old     new   delta
list_disk_geometry                                   175     145     -30

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
util-linux/fdisk.c
util-linux/fdisk_osf.c
util-linux/fdisk_sgi.c
util-linux/fdisk_sun.c