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:
parent
acf8ec5684
commit
6bd211bb87
@ -216,7 +216,7 @@ text2lval(size_t triml, size_t trimr, int tovar)
|
|||||||
*d = *++s - '0';
|
*d = *++s - '0';
|
||||||
else if (s[1] >= 'A' && s[1] <= 'F')
|
else if (s[1] >= 'A' && s[1] <= 'F')
|
||||||
*d = *++s + (0xA - 'A');
|
*d = *++s + (0xA - 'A');
|
||||||
else if (s[1] >= 'a' && s[1] <= 'F')
|
else if (s[1] >= 'a' && s[1] <= 'f')
|
||||||
*d = *++s + (0xa - 'a');
|
*d = *++s + (0xa - 'a');
|
||||||
else
|
else
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user