Author: imp Date: Fri May 20 05:33:26 2016 New Revision: 300264 URL: https://svnweb.freebsd.org/changeset/base/300264
Log: Fix a bug in the parsing code: always use the len and not 8. Modified: head/lib/libstand/uuid_from_string.c Modified: head/lib/libstand/uuid_from_string.c ============================================================================== --- head/lib/libstand/uuid_from_string.c Fri May 20 05:00:05 2016 (r300263) +++ head/lib/libstand/uuid_from_string.c Fri May 20 05:33:26 2016 (r300264) @@ -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; _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"