From: Karel Zak Date: Thu, 22 Jan 2009 00:17:08 +0000 (+0100) Subject: blkid: use blkid_probe_strcpy_uuid() for luks X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22db12778e46f709941ce4f3c3195bfff6b4b6b4;p=util-linux blkid: use blkid_probe_strcpy_uuid() for luks LUKS stores UUID as a string... Signed-off-by: Karel Zak --- diff --git a/libs/blkid/src/probers/luks.c b/libs/blkid/src/probers/luks.c index 37023685..f44de15b 100644 --- a/libs/blkid/src/probers/luks.c +++ b/libs/blkid/src/probers/luks.c @@ -47,7 +47,7 @@ static int probe_luks(blkid_probe pr, const struct blkid_idmag *mag) if (header == NULL) return -1; - blkid_probe_sprintf_uuid(pr, header->uuid, 36, "%s", header->uuid); + blkid_probe_strncpy_uuid(pr, (char *) header->uuid, sizeof(header->uuid)); blkid_probe_sprintf_version(pr, "%u", le16_to_cpu(header->version)); return 0; }