]> err.no Git - util-linux/commitdiff
blkid: use blkid_probe_strcpy_uuid() for luks
authorKarel Zak <kzak@redhat.com>
Thu, 22 Jan 2009 00:17:08 +0000 (01:17 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 11 Feb 2009 22:35:23 +0000 (23:35 +0100)
LUKS stores UUID as a string...

Signed-off-by: Karel Zak <kzak@redhat.com>
libs/blkid/src/probers/luks.c

index 37023685caa27aecd47ebf07e326632a202f10ca..f44de15b3164c4a7caf9eab47764877c357b055b 100644 (file)
@@ -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;
 }