aboutsummaryrefslogtreecommitdiff
path: root/src/multicast/test_multicast_2peers.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-05-13 19:55:46 +0200
committerChristian Grothoff <christian@grothoff.org>2018-05-13 19:55:46 +0200
commitfa2978883e1585b1eeff3a22b7a9b4f174a45ca3 (patch)
tree52800dd5062534729be80227608def6f6c0c45ac /src/multicast/test_multicast_2peers.c
parent2bb2faa207e4015609100a1aca38af344c65596f (diff)
downloadgnunet-fa2978883e1585b1eeff3a22b7a9b4f174a45ca3.tar.gz
gnunet-fa2978883e1585b1eeff3a22b7a9b4f174a45ca3.zip
get rid of plain memcpy calls
Diffstat (limited to 'src/multicast/test_multicast_2peers.c')
-rw-r--r--src/multicast/test_multicast_2peers.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/multicast/test_multicast_2peers.c b/src/multicast/test_multicast_2peers.c
index 8ce4d585f..ad1a48d6c 100644
--- a/src/multicast/test_multicast_2peers.c
+++ b/src/multicast/test_multicast_2peers.c
@@ -223,8 +223,11 @@ origin_notify (void *cls,
223 void *data) 223 void *data)
224{ 224{
225 char text[] = "pong"; 225 char text[] = "pong";
226
226 *data_size = strlen(text)+1; 227 *data_size = strlen(text)+1;
227 memcpy(data, text, *data_size); 228 GNUNET_memcpy (data,
229 text,
230 *data_size);
228 231
229 GNUNET_log (GNUNET_ERROR_TYPE_INFO, "origin sends (to all): %s\n", text); 232 GNUNET_log (GNUNET_ERROR_TYPE_INFO, "origin sends (to all): %s\n", text);
230 233