summaryrefslogtreecommitdiffstats
path: root/rfc1035/rfc1035dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'rfc1035/rfc1035dump.c')
-rw-r--r--rfc1035/rfc1035dump.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/rfc1035/rfc1035dump.c b/rfc1035/rfc1035dump.c
index 6b62a5e..0ee8639 100644
--- a/rfc1035/rfc1035dump.c
+++ b/rfc1035/rfc1035dump.c
@@ -1,5 +1,5 @@
/*
-** Copyright 1998 - 2000 Double Precision, Inc.
+** Copyright 1998 - 2018 Double Precision, Inc.
** See COPYING for distribution information.
*/
@@ -12,7 +12,7 @@ static void print_hostname(FILE *f, const char *p)
{
for ( ; *p; p++)
{
- if (*p < ' ' || *p >= 127)
+ if ((unsigned char)*p < ' ')
{
fprintf(f, "\\%03o", (int)(unsigned char)*p);
continue;
@@ -48,10 +48,10 @@ struct rfc1035_reply *qr;
fprintf(f, " (server %s)", ipbuf);
- fprintf(f, ":\n;; Bytes: %ld\n",
+ fprintf(f, ":\n;; Bytes: %ld\n",
(long)r->replylen);
- fprintf(f, ";; Opcode: %s\n",
+ fprintf(f, ";; Opcode: %s\n",
rfc1035_opcode_itostr(r->opcode));
fprintf(f, ";; Flags:");
if (r->qr)