mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Fix a bug in the parsing code: always use the len and not 8.
This commit is contained in:
parent
5e0a6f31e5
commit
de06886d2b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=300264
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue