summaryrefslogtreecommitdiff
path: root/term/ptyio.c
diff options
context:
space:
mode:
Diffstat (limited to 'term/ptyio.c')
-rw-r--r--term/ptyio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/term/ptyio.c b/term/ptyio.c
index f2ff96e6..1bdb43d7 100644
--- a/term/ptyio.c
+++ b/term/ptyio.c
@@ -352,7 +352,7 @@ pty_io_read (struct trivfs_protid *cred,
{
**data = control_byte;
if (packet_mode && (control_byte & TIOCPKT_IOCTL))
- bcopy (&termstate, *data + 1, size - 1);
+ memcpy (*data + 1, &termstate, size - 1);
control_byte = 0;
}
else