diff options
Diffstat (limited to 'src/util/test_client.c')
-rw-r--r-- | src/util/test_client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/test_client.c b/src/util/test_client.c index 89adf41a3..07af5ea35 100644 --- a/src/util/test_client.c +++ b/src/util/test_client.c | |||
@@ -52,7 +52,7 @@ copy_msg (void *cls, size_t size, void *buf) | |||
52 | 52 | ||
53 | GNUNET_assert (sizeof (struct GNUNET_MessageHeader) == ntohs (cpy->size)); | 53 | GNUNET_assert (sizeof (struct GNUNET_MessageHeader) == ntohs (cpy->size)); |
54 | GNUNET_assert (size >= ntohs (cpy->size)); | 54 | GNUNET_assert (size >= ntohs (cpy->size)); |
55 | memcpy (buf, cpy, ntohs (cpy->size)); | 55 | GNUNET_memcpy (buf, cpy, ntohs (cpy->size)); |
56 | GNUNET_SERVER_receive_done (ctx->client, GNUNET_OK); | 56 | GNUNET_SERVER_receive_done (ctx->client, GNUNET_OK); |
57 | GNUNET_free (cpy); | 57 | GNUNET_free (cpy); |
58 | GNUNET_free (ctx); | 58 | GNUNET_free (ctx); |
@@ -79,7 +79,7 @@ echo_cb (void *cls, | |||
79 | cc = GNUNET_new (struct CopyContext); | 79 | cc = GNUNET_new (struct CopyContext); |
80 | cc->client = client; | 80 | cc->client = client; |
81 | cpy = GNUNET_malloc (ntohs (message->size)); | 81 | cpy = GNUNET_malloc (ntohs (message->size)); |
82 | memcpy (cpy, message, ntohs (message->size)); | 82 | GNUNET_memcpy (cpy, message, ntohs (message->size)); |
83 | cc->cpy = cpy; | 83 | cc->cpy = cpy; |
84 | GNUNET_assert (NULL != | 84 | GNUNET_assert (NULL != |
85 | GNUNET_SERVER_notify_transmit_ready (client, | 85 | GNUNET_SERVER_notify_transmit_ready (client, |