Skip to content

Commit

Permalink
libuuid: set variant in the corrrect byte: __uuid_set_variant_and_ver…
Browse files Browse the repository at this point in the history
…sion
  • Loading branch information
oittaa authored Jul 16, 2024
1 parent 42029e9 commit 198e920
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libuuid/src/gen_uuid.c
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ static void __uuid_set_variant_and_version(uuid_t uuid, int version)
{
uuid[6] = (uuid[6] & UUID_TYPE_MASK) | version << UUID_TYPE_SHIFT;
/* only DCE is supported */
uuid[8] = (uuid[10] & 0x3F) | 0x80;
uuid[8] = (uuid[8] & 0x3F) | 0x80;
}

/*
Expand Down

0 comments on commit 198e920

Please sign in to comment.