Merge pull request #1874 from rubenk/utils-dns-fix-compiler-warning
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 14 Aug 2016 19:41:00 +0000 (21:41 +0200)
committerGitHub <noreply@github.com>
Sun, 14 Aug 2016 19:41:00 +0000 (21:41 +0200)
utils_dns.c: fix compiler warning

src/utils_dns.c

index f38a7bd..3e80e86 100644 (file)
@@ -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;