projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
configure.ac: rewrite liblua detection
[collectd.git]
/
src
/
utils_dns.c
diff --git
a/src/utils_dns.c
b/src/utils_dns.c
index
f38a7bd
..
3e80e86
100644
(file)
--- a/
src/utils_dns.c
+++ b/
src/utils_dns.c
@@
-527,7
+527,7
@@
handle_ip(const struct ip *ip, int len)
return (0);
if (IPPROTO_UDP != ip->ip_p)
return 0;
- memcpy(buf, (
void *) ip
+ offset, len - offset);
+ memcpy(buf, (
(char *)ip)
+ offset, len - offset);
if (0 == handle_udp((struct udphdr *) buf, len - offset))
return 0;
return 1;