aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_transport_address_switch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/test_transport_address_switch.c')
-rw-r--r--src/transport/test_transport_address_switch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transport/test_transport_address_switch.c b/src/transport/test_transport_address_switch.c
index 6c86a160f..a2311f99b 100644
--- a/src/transport/test_transport_address_switch.c
+++ b/src/transport/test_transport_address_switch.c
@@ -486,7 +486,7 @@ notify_ready (void *cls, size_t size, void *buf)
486 hdr.header.size = htons (MSIZE); 486 hdr.header.size = htons (MSIZE);
487 hdr.header.type = htons (MTYPE); 487 hdr.header.type = htons (MTYPE);
488 hdr.num = htonl (counter++); 488 hdr.num = htonl (counter++);
489 memcpy (&cbuf[0], &hdr, sizeof(struct TestMessage)); 489 GNUNET_memcpy (&cbuf[0], &hdr, sizeof(struct TestMessage));
490 memset (&cbuf[sizeof(struct TestMessage)], '0', MSIZE - sizeof(struct TestMessage)); 490 memset (&cbuf[sizeof(struct TestMessage)], '0', MSIZE - sizeof(struct TestMessage));
491 491
492 char *receiver_s = GNUNET_strdup (GNUNET_i2s (&receiver->id)); 492 char *receiver_s = GNUNET_strdup (GNUNET_i2s (&receiver->id));