From a4d0f18f46b9968a02653a5a7b5332f8c0466ba9 Mon Sep 17 00:00:00 2001 From: Victor Westerhuis Date: Thu, 25 Jul 2024 15:10:16 +0200 Subject: [PATCH] libblkid: bitlocker: fix version on big-endian systems --- libblkid/src/superblocks/bitlocker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libblkid/src/superblocks/bitlocker.c b/libblkid/src/superblocks/bitlocker.c index a9a7bfb8f5..170a67605e 100644 --- a/libblkid/src/superblocks/bitlocker.c +++ b/libblkid/src/superblocks/bitlocker.c @@ -168,7 +168,7 @@ static int probe_bitlocker(blkid_probe pr, if (buf_fve) { const struct bde_fve_metadata *fve = (const struct bde_fve_metadata *) buf_fve; - blkid_probe_sprintf_version(pr, "%d", fve->version); + blkid_probe_sprintf_version(pr, "%d", le16_to_cpu(fve->version)); } return 0; } -- 2.47.2