From 97a7e6617f8ad06b7bff495603200b853766ecc8 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Wed, 17 Jan 2018 07:45:32 +0100 Subject: basic test for eos & fe310 passed --- code/ecp/fe310/transport.c | 1 + 1 file changed, 1 insertion(+) (limited to 'code/ecp/fe310') diff --git a/code/ecp/fe310/transport.c b/code/ecp/fe310/transport.c index 9ff04ca..99a1b10 100644 --- a/code/ecp/fe310/transport.c +++ b/code/ecp/fe310/transport.c @@ -34,6 +34,7 @@ static ssize_t t_send(int *sock, ECPBuffer *packet, size_t msg_size, ECPNetAddr if (packet && packet->buffer) buf = packet->buffer-addr_len; } else { buf = eos_net_alloc(); + memcpy(buf+addr_len, packet->buffer, msg_size); } if (buf == NULL) return ECP_ERR; memcpy(buf, addr->host, sizeof(addr->host)); -- cgit v1.2.3