]> err.no Git - util-linux/commit
fdisk: correctly truncate and align translated partition names
authorPádraig Brady <P@draigBrady.com>
Tue, 9 Mar 2010 08:21:35 +0000 (08:21 +0000)
committerKarel Zak <kzak@redhat.com>
Tue, 16 Mar 2010 14:29:01 +0000 (15:29 +0100)
commitb8d22034f1b393a48ce7af9e15d910bf0e29df0b
tree9cce7f888f5f7e48dd6c879b2554d152db1b0904
parent70502c5246815c35dba4d062ef4152d71b827ef8
fdisk: correctly truncate and align translated partition names

* fdisk/Makefile.am: Depend on the mbsalign module.
* fdisk/fdisk.c: Align using mbsalign rather than printf.

[kzak@redhat.com: - use size_t for width to fix gcc warning]

Reported-by: Makoto Kato <m_kato@ga2.so-net.ne.jp>
Signed-off-by: Pádraig Brady <P@draigBrady.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
fdisk/Makefile.am
fdisk/fdisk.c