summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9f83527)
raw | patch | inline | side by side (parent: 9f83527)
author | Ulrich Habel <rhaen@netbsd.org> | |
Wed, 29 Oct 2008 05:54:26 +0000 (06:54 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Wed, 29 Oct 2008 05:54:26 +0000 (06:54 +0100) |
This is needed at least on NetBSD, but probably on other non-GNU libcs as well.
Resolves: #32
Resolves: #32
src/utils_dns.c | patch | blob | history |
diff --git a/src/utils_dns.c b/src/utils_dns.c
index 9b001517c80945f1d5e5e4d643c867f31a07ab54..46e6018e80407faac028192b14793e4a12188336 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);