diff --git a/src/utils_dns.c b/src/utils_dns.c
index f2ab3377ed43bf60dc40584e7dfbe3773cfdca9a..c16ca52c4380abe196937806225560bd392c457e 100644 (file)
--- a/src/utils_dns.c
+++ b/src/utils_dns.c
while ((t = strchr(qh.qname, '\r')))
*t = ' ';
for (t = qh.qname; *t; t++)
- *t = tolower(*t);
+ *t = tolower((int) *t);
memcpy(&us, buf + offset, 2);
qh.qtype = ntohs(us);