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/ats/plugin_ats_ril.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ats/plugin_ats_ril.c') diff --git a/src/ats/plugin_ats_ril.c b/src/ats/plugin_ats_ril.c index 766a9936d..eac62c440 100644 --- a/src/ats/plugin_ats_ril.c +++ b/src/ats/plugin_ats_ril.c @@ -2089,8 +2089,8 @@ ril_cut_from_vector (void **old, else { tmpptr = GNUNET_malloc (size); - memcpy (tmpptr, oldptr, bytes_before); - memcpy (tmpptr + bytes_before, oldptr + (bytes_before + bytes_hole), bytes_after); + GNUNET_memcpy (tmpptr, oldptr, bytes_before); + GNUNET_memcpy (tmpptr + bytes_before, oldptr + (bytes_before + bytes_hole), bytes_after); } if (NULL != *old) { -- cgit v1.2.3