From d8c53b12a818ff7cf82d06a1a69c395bdef85ee6 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 8 Jul 2016 17:20:23 +0000 Subject: -avoid calling memcpy() with NULL argument, even if len is 0 --- src/gns/gns_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gns/gns_api.c') diff --git a/src/gns/gns_api.c b/src/gns/gns_api.c index 8f821f715..c45f5bc3d 100644 --- a/src/gns/gns_api.c +++ b/src/gns/gns_api.c @@ -412,7 +412,7 @@ GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle, lookup_msg->have_key = htons (GNUNET_YES); lookup_msg->shorten_key = *shorten_zone_key; } - memcpy (&lookup_msg[1], + GNUNET_memcpy (&lookup_msg[1], name, nlen); GNUNET_CONTAINER_DLL_insert (handle->lookup_head, -- cgit v1.2.3