diff options
author | imp <imp@FreeBSD.org> | 2016-05-20 05:33:26 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2016-05-20 05:33:26 +0000 |
commit | 7ba611924b2c6fb3937354ede3eb6e47fb44443c (patch) | |
tree | 7e3e6db11a27e9c8b5cb67af8efeb9e966c5538d /lib/libstand | |
parent | a09fd6097b5d99712404c298ff992620c28d9768 (diff) | |
download | FreeBSD-src-7ba611924b2c6fb3937354ede3eb6e47fb44443c.zip FreeBSD-src-7ba611924b2c6fb3937354ede3eb6e47fb44443c.tar.gz |
Fix a bug in the parsing code: always use the len and not 8.
Diffstat (limited to 'lib/libstand')
-rw-r--r-- | lib/libstand/uuid_from_string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libstand/uuid_from_string.c b/lib/libstand/uuid_from_string.c index 2d5a6dd..7a59b41 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; |