aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/gnunet-service-cadet_local.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cadet/gnunet-service-cadet_local.c')
-rw-r--r--src/cadet/gnunet-service-cadet_local.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cadet/gnunet-service-cadet_local.c b/src/cadet/gnunet-service-cadet_local.c
index 0a7c3d14d..ce1f45a10 100644
--- a/src/cadet/gnunet-service-cadet_local.c
+++ b/src/cadet/gnunet-service-cadet_local.c
@@ -1487,7 +1487,7 @@ GML_send_data (struct CadetClient *c,
1487 return; 1487 return;
1488 } 1488 }
1489 copy = (struct GNUNET_CADET_LocalData *) cbuf; 1489 copy = (struct GNUNET_CADET_LocalData *) cbuf;
1490 memcpy (&copy[1], &msg[1], size); 1490 GNUNET_memcpy (&copy[1], &msg[1], size);
1491 copy->header.size = htons (sizeof (struct GNUNET_CADET_LocalData) + size); 1491 copy->header.size = htons (sizeof (struct GNUNET_CADET_LocalData) + size);
1492 copy->header.type = htons (GNUNET_MESSAGE_TYPE_CADET_LOCAL_DATA); 1492 copy->header.type = htons (GNUNET_MESSAGE_TYPE_CADET_LOCAL_DATA);
1493 copy->id = htonl (id); 1493 copy->id = htonl (id);