summaryrefslogtreecommitdiff
path: root/usr/src/boot/lib/libstand
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2016-11-08 16:05:42 +0200
committerDan McDonald <danmcd@omniti.com>2016-11-08 13:36:05 -0500
commitdd5bccd7cf5f24c78ff320fd70b55522e4cdc406 (patch)
tree490622787ec8046cb3c0d745dd04c095979e9a7a /usr/src/boot/lib/libstand
parent405a5a0f5c3ab36cb76559467d1a62ba648bd809 (diff)
downloadillumos-joyent-dd5bccd7cf5f24c78ff320fd70b55522e4cdc406.tar.gz
7553 bug in libstand uuid_to_string
Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com> Reviewed by: Robert Mustacchi <rm@joyent.com> Approved by: Dan McDonald <danmcd@omniti.com>
Diffstat (limited to 'usr/src/boot/lib/libstand')
-rw-r--r--usr/src/boot/lib/libstand/uuid_from_string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/boot/lib/libstand/uuid_from_string.c b/usr/src/boot/lib/libstand/uuid_from_string.c
index 2d5a6dd197..7a59b4189e 100644
--- a/usr/src/boot/lib/libstand/uuid_from_string.c
+++ b/usr/src/boot/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;