From 705459369c0d834ed055160e7a40418ed2014956 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 20 May 2018 18:55:39 +0200 Subject: fix warning --- src/gns/Makefile.am | 1 + src/gns/gnunet-gns-benchmark.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/gns/Makefile.am b/src/gns/Makefile.am index ac11c834e..46642113f 100644 --- a/src/gns/Makefile.am +++ b/src/gns/Makefile.am @@ -264,6 +264,7 @@ check_SCRIPTS = \ test_gns_txt_lookup.sh\ test_gns_mx_lookup.sh \ test_gns_gns2dns_lookup.sh \ + test_gns_gns2dns_cname_lookup.sh \ test_gns_dht_lookup.sh\ test_gns_delegated_lookup.sh \ test_gns_at_lookup.sh\ diff --git a/src/gns/gnunet-gns-benchmark.c b/src/gns/gnunet-gns-benchmark.c index 574251c87..00d1c6813 100644 --- a/src/gns/gnunet-gns-benchmark.c +++ b/src/gns/gnunet-gns-benchmark.c @@ -454,7 +454,7 @@ queue (const char *hostname, req = GNUNET_malloc (sizeof (struct Request) + hlen); req->cat = cat; req->hostname = (char *) &req[1]; - GNUNET_memcpy (req->hostname, + GNUNET_memcpy (&req[1], hostname, hlen); GNUNET_CONTAINER_DLL_insert (todo_head, -- cgit v1.2.3