]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: fix compiler warning [-Wformat-truncation=]
authorKarel Zak <kzak@redhat.com>
Wed, 16 Aug 2017 09:55:57 +0000 (11:55 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 20 Sep 2017 12:18:27 +0000 (14:18 +0200)
commitc712bf87341b02a1cac5274e57728f9c32133983
tree8aa240d103cdfe287ca0cfedf5e94573032d4e4a
parentbb3f968f2fd67207d0997625bd01fe3ea5f43e22
libblkid: fix compiler warning [-Wformat-truncation=]

The MBR partition pseudo-UUID is generated from table ID and partition
partno. The final UUID size limit is 37 bytes. The table ID has to be
restricted to keep compiler happy (for MBR the table ID is 8 bytes
as string).

Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/partitions/partitions.c