mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 22:32:07 -04:00
add CONVERTFROMASCII
This commit is contained in:
parent
4fd3e3482c
commit
b9a2c5ddf9
1 changed files with 2 additions and 0 deletions
|
|
@ -1461,6 +1461,7 @@ dns_name_totext(dns_name_t *name, isc_boolean_t omit_final_dot,
|
|||
if (trem < 2)
|
||||
return (DNS_R_NOSPACE);
|
||||
*tdata++ = '\\';
|
||||
CONVERTFROMASCII(c);
|
||||
*tdata++ = c;
|
||||
ndata++;
|
||||
trem -= 2;
|
||||
|
|
@ -1470,6 +1471,7 @@ dns_name_totext(dns_name_t *name, isc_boolean_t omit_final_dot,
|
|||
if (c > 0x20 && c < 0x7f) {
|
||||
if (trem == 0)
|
||||
return (DNS_R_NOSPACE);
|
||||
CONVERTFROMASCII(c);
|
||||
*tdata++ = c;
|
||||
ndata++;
|
||||
trem--;
|
||||
|
|
|
|||
Loading…
Reference in a new issue