diff options
Diffstat (limited to 'code/core')
-rw-r--r-- | code/core/fe310/transport.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/code/core/fe310/transport.c b/code/core/fe310/transport.c index 7afdbf7..b833ee3 100644 --- a/code/core/fe310/transport.c +++ b/code/core/fe310/transport.c @@ -27,6 +27,8 @@ static ssize_t t_send(int *sock, void *msg, size_t msg_size, ECPNetAddr *addr) { int rv; buf -= addr_len; + memcpy(buf, addr->host, sizeof(addr->host)); + memcpy(buf+sizeof(addr->host), &addr->port, sizeof(addr->port)); rv = eos_net_send(EOS_NET_CMD_PKT, buf, buf_size); if (rv) return ECP_ERR_SEND; return msg_size; |