diff options
author | Uros Majstorovic <majstor@majstor.org> | 2018-01-17 07:45:32 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2018-01-17 07:45:32 +0100 |
commit | 97a7e6617f8ad06b7bff495603200b853766ecc8 (patch) | |
tree | 9e8a4aaa5b3ef366c595595871db43eae2facdc2 /code/ecp | |
parent | 01c3e3af2394f863323b846fa304ff7e0a30e9df (diff) |
basic test for eos & fe310 passed
Diffstat (limited to 'code/ecp')
-rw-r--r-- | code/ecp/fe310/transport.c | 1 |
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)); |