diff options
Diffstat (limited to 'src/cadet/cadet_api.c')
-rw-r--r-- | src/cadet/cadet_api.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cadet/cadet_api.c b/src/cadet/cadet_api.c index 960f4788c..1ad3ec5b0 100644 --- a/src/cadet/cadet_api.c +++ b/src/cadet/cadet_api.c | |||
@@ -1410,7 +1410,7 @@ send_callback (void *cls, size_t size, void *buf) | |||
1410 | mh = (const struct GNUNET_MessageHeader *) &th[1]; | 1410 | mh = (const struct GNUNET_MessageHeader *) &th[1]; |
1411 | LOG (GNUNET_ERROR_TYPE_DEBUG, "# cadet internal traffic, type %s\n", | 1411 | LOG (GNUNET_ERROR_TYPE_DEBUG, "# cadet internal traffic, type %s\n", |
1412 | GC_m2s (ntohs (mh->type))); | 1412 | GC_m2s (ntohs (mh->type))); |
1413 | memcpy (cbuf, &th[1], th->size); | 1413 | GNUNET_memcpy (cbuf, &th[1], th->size); |
1414 | psize = th->size; | 1414 | psize = th->size; |
1415 | } | 1415 | } |
1416 | GNUNET_assert (GNUNET_CONSTANTS_MAX_CADET_MESSAGE_SIZE >= psize); | 1416 | GNUNET_assert (GNUNET_CONSTANTS_MAX_CADET_MESSAGE_SIZE >= psize); |
@@ -1478,7 +1478,7 @@ send_packet (struct GNUNET_CADET_Handle *h, | |||
1478 | th->timeout = GNUNET_TIME_UNIT_FOREVER_ABS; | 1478 | th->timeout = GNUNET_TIME_UNIT_FOREVER_ABS; |
1479 | th->size = msize; | 1479 | th->size = msize; |
1480 | th->channel = channel; | 1480 | th->channel = channel; |
1481 | memcpy (&th[1], msg, msize); | 1481 | GNUNET_memcpy (&th[1], msg, msize); |
1482 | add_to_queue (h, th); | 1482 | add_to_queue (h, th); |
1483 | if (NULL != h->th) | 1483 | if (NULL != h->th) |
1484 | return; | 1484 | return; |
@@ -2098,7 +2098,7 @@ cadet_mq_ntr (void *cls, size_t size, | |||
2098 | } | 2098 | } |
2099 | msize = ntohs (msg->size); | 2099 | msize = ntohs (msg->size); |
2100 | GNUNET_assert (msize <= size); | 2100 | GNUNET_assert (msize <= size); |
2101 | memcpy (buf, msg, msize); | 2101 | GNUNET_memcpy (buf, msg, msize); |
2102 | GNUNET_MQ_impl_send_continue (mq); | 2102 | GNUNET_MQ_impl_send_continue (mq); |
2103 | return msize; | 2103 | return msize; |
2104 | } | 2104 | } |