[glib/th/guuid-parse-shift] guuid: fix shift operation to parse hex string in uuid_parse_string()
- From: Thomas Haller <thaller src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/th/guuid-parse-shift] guuid: fix shift operation to parse hex string in uuid_parse_string()
- Date: Mon, 3 May 2021 13:10:50 +0000 (UTC)
commit 10027a7cb68d1caad574289cae1a756c2428a088
Author: Thomas Haller <thaller redhat com>
Date: Mon May 3 10:46:02 2021 +0200
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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]