Skip to content
Snippets Groups Projects
Commit ae3613ad authored by Daniel Salzman's avatar Daniel Salzman
Browse files

txt-dump: fix encoding of unprintable characters

parent c3f47911
No related branches found
No related tags found
No related merge requests found
......@@ -549,9 +549,9 @@ static void wire_text_to_str(rrset_dump_params_t *p)
// Loop over all characters.
for (size_t i = 0; i < in_len; i++) {
char ch = (char)(p->in)[i];
uint8_t ch = p->in[i];
if (isprint((unsigned char)(ch)) != 0) {
if (isprint(ch) != 0) {
// For special character print leading slash.
if (ch == '\\' || ch == '"') {
dump_string(p, "\\");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment