projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f83527
)
src/utils_dns.c: Cast a `char' to `int' when using `tolower'.
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
src/utils_dns.c
patch
|
blob
|
history
diff --git
a/src/utils_dns.c
b/src/utils_dns.c
index
9b00151
..
46e6018
100644
(file)
--- a/
src/utils_dns.c
+++ b/
src/utils_dns.c
@@
-390,7
+390,7
@@
handle_dns(const char *buf, int len,
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);