From 22db12778e46f709941ce4f3c3195bfff6b4b6b4 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 22 Jan 2009 01:17:08 +0100 Subject: [PATCH] blkid: use blkid_probe_strcpy_uuid() for luks LUKS stores UUID as a string... Signed-off-by: Karel Zak --- libs/blkid/src/probers/luks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5