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/social/gnunet-social.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/social/gnunet-social.c') diff --git a/src/social/gnunet-social.c b/src/social/gnunet-social.c index 7c36a96d4..ed3801abc 100644 --- a/src/social/gnunet-social.c +++ b/src/social/gnunet-social.c @@ -349,7 +349,7 @@ notify_data (void *cls, uint16_t *data_size, void *data) struct TransmitClosure *tmit = cls; uint16_t size = tmit->size < *data_size ? tmit->size : *data_size; *data_size = size; - memcpy (data, tmit->data, size); + GNUNET_memcpy (data, tmit->data, size); tmit->size -= size; tmit->data += size; -- cgit v1.2.3