block: fix buffer overflow when printing partition UUIDs