diff --git a/drivers/serial/uart_rpmsg.c b/drivers/serial/uart_rpmsg.c index c00839ba09..b63a2deb86 100644 --- a/drivers/serial/uart_rpmsg.c +++ b/drivers/serial/uart_rpmsg.c @@ -255,7 +255,7 @@ static void uart_rpmsg_dmasend(FAR struct uart_dev_s *dev) if (len > xfer->length) { memcpy(msg->data, xfer->buffer, xfer->length); - memcpy(msg->data, xfer->nbuffer, len - xfer->length); + memcpy(msg->data + xfer->length, xfer->nbuffer, len - xfer->length); } else {