libblkid: make new_partition() more robust

Signed-off-by: Karel Zak <kzak@redhat.com>
libsmartcols: fix buffer usage

Signed-off-by: Karel Zak <kzak@redhat.com>