summaryrefslogtreecommitdiff
path: root/code/ecp/fe310/transport.c
diff options
context:
space:
mode:
Diffstat (limited to 'code/ecp/fe310/transport.c')
-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));