]> err.no Git - util-linux/commitdiff
libblkid: fix LUKS version
authorKarel Zak <kzak@redhat.com>
Wed, 28 Apr 2010 07:10:27 +0000 (09:10 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 28 Apr 2010 07:11:14 +0000 (09:11 +0200)
Reported-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
shlibs/blkid/src/superblocks/luks.c

index 0af85b531123760ad3052dcec82775fb4328720d..f716e31c34c06224f229e5d3c2d7737966a8c3af 100644 (file)
@@ -49,7 +49,7 @@ static int probe_luks(blkid_probe pr, const struct blkid_idmag *mag)
 
        blkid_probe_strncpy_uuid(pr, (unsigned char *) header->uuid,
                        sizeof(header->uuid));
-       blkid_probe_sprintf_version(pr, "%u", le16_to_cpu(header->version));
+       blkid_probe_sprintf_version(pr, "%u", be16_to_cpu(header->version));
        return 0;
 }