From 10027a7cb68d1caad574289cae1a756c2428a088 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Mon, 3 May 2021 10:46:02 +0200 Subject: [PATCH] guuid: fix shift operation to parse hex string in uuid_parse_string() The actually parsed `@bytes` are not used because the only caller does not provide an output parameter to request them. So this bug had no effect in practice. --- glib/guuid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/guuid.c b/glib/guuid.c index f26343ee0..5368465c5 100644 --- a/glib/guuid.c +++ b/glib/guuid.c @@ -113,7 +113,7 @@ uuid_parse_string (const gchar *str, if (hi == -1 || lo == -1) return FALSE; - bytes[i++] = hi << 8 | lo; + bytes[i++] = hi << 4 | lo; } if (uuid != NULL)