Update local variable 'block' after calling capacity_resize(),
authormarcel <marcel@FreeBSD.org>
Sat, 24 Sep 2016 17:29:27 +0000 (17:29 +0000)
committermarcel <marcel@FreeBSD.org>
Sat, 24 Sep 2016 17:29:27 +0000 (17:29 +0000)
commit89337d7b723a2607780884564870331752e50171
tree62963561350b23c6dc66b755290c59c20ad10c53
parent17592f2cf9fd3b339ebef08d88e02e2c7db14cd9
Update local variable 'block' after calling capacity_resize(),
otherwise format_resize(), which is called right after, isn't
getting the current/actual image size. Rather than rounding up,
format_resize() could end up truncating the size and we don't
allow that by design.

MFC after: 1 week
usr.bin/mkimg/mkimg.c