summaryrefslogtreecommitdiff
path: root/src/libknot/rrset-dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libknot/rrset-dump.c')
-rw-r--r--src/libknot/rrset-dump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libknot/rrset-dump.c b/src/libknot/rrset-dump.c
index e22a629..c8c7fe7 100644
--- a/src/libknot/rrset-dump.c
+++ b/src/libknot/rrset-dump.c
@@ -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, "\\");