Same as r316022 (Fix hexadecimal escape codes in jail.conf(5)),

but do it right this time.

Reported by:	Kyle Evans <Kyle Evans>
MFC after:	3 days
This commit is contained in:
Jamie Gritton 2017-03-27 13:37:40 +00:00
parent acf8ec5684
commit 6bd211bb87
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=316023

View file

@ -216,7 +216,7 @@ text2lval(size_t triml, size_t trimr, int tovar)
*d = *++s - '0';
else if (s[1] >= 'A' && s[1] <= 'F')
*d = *++s + (0xA - 'A');
else if (s[1] >= 'a' && s[1] <= 'F')
else if (s[1] >= 'a' && s[1] <= 'f')
*d = *++s + (0xa - 'a');
else
break;