From bd9864969f7b82f3fa927bf5903d39bf6c77b346 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julius=20B=C3=BCnger?= Date: Thu, 29 Sep 2016 23:46:22 +0000 Subject: [PATCH] -fix rps service: memcpy() -> memmove() --- src/rps/gnunet-service-rps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c index 68c0688af..11a2215c5 100644 --- a/src/rps/gnunet-service-rps.c +++ b/src/rps/gnunet-service-rps.c @@ -399,7 +399,7 @@ rem_from_list (struct GNUNET_PeerIdentity **peer_list, { if (i < *list_size -1) { /* Not at the last entry -- shift peers left */ - GNUNET_memcpy (&tmp[i], &tmp[i +1], + memmove (&tmp[i], &tmp[i +1], ((*list_size) - i -1) * sizeof (struct GNUNET_PeerIdentity)); } /* Remove last entry (should be now useless PeerID) */ -- 2.25.1