From c90bdfede677808186b0921330d05a02b45c4963 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 28 Apr 2010 09:10:27 +0200 Subject: [PATCH] libblkid: fix LUKS version Reported-by: Milan Broz Signed-off-by: Karel Zak --- shlibs/blkid/src/superblocks/luks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shlibs/blkid/src/superblocks/luks.c b/shlibs/blkid/src/superblocks/luks.c index 0af85b53..f716e31c 100644 --- a/shlibs/blkid/src/superblocks/luks.c +++ b/shlibs/blkid/src/superblocks/luks.c @@ -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; } -- 2.39.5