summaryrefslogtreecommitdiff
path: root/code/ecp/fe310
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2018-01-17 07:45:32 +0100
committerUros Majstorovic <majstor@majstor.org>2018-01-17 07:45:32 +0100
commit97a7e6617f8ad06b7bff495603200b853766ecc8 (patch)
tree9e8a4aaa5b3ef366c595595871db43eae2facdc2 /code/ecp/fe310
parent01c3e3af2394f863323b846fa304ff7e0a30e9df (diff)
basic test for eos & fe310 passed
Diffstat (limited to 'code/ecp/fe310')
-rw-r--r--code/ecp/fe310/transport.c1
1 files changed, 1 insertions, 0 deletions
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));