From 7ba611924b2c6fb3937354ede3eb6e47fb44443c Mon Sep 17 00:00:00 2001 From: imp Date: Fri, 20 May 2016 05:33:26 +0000 Subject: [PATCH] Fix a bug in the parsing code: always use the len and not 8. --- lib/libstand/uuid_from_string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libstand/uuid_from_string.c b/lib/libstand/uuid_from_string.c index 2d5a6dd1973d..7a59b4189ead 100644 --- a/lib/libstand/uuid_from_string.c +++ b/lib/libstand/uuid_from_string.c @@ -57,7 +57,7 @@ fromhex(const char *s, int len, int *ok) if (!*ok) return 0; v = 0; - for (i = 0; i < 8; i++) { + for (i = 0; i < len; i++) { h = hex2int(s[i]); if (h == 16) { *ok = 0; -- 2.41.0