diff options
author | Marcus Brinkmann <marcus@gnu.org> | 2002-03-05 02:17:04 +0000 |
---|---|---|
committer | Marcus Brinkmann <marcus@gnu.org> | 2002-03-05 02:17:04 +0000 |
commit | 1536fb3ea57668f41c8c160288b3daeab2163639 (patch) | |
tree | e9b2ec8c65756107dda79b7cad91f3a8fade4fbe /term/ptyio.c | |
parent | 7c66508fb414b4d9271e0772c67d4e6383d912e2 (diff) | |
download | hurd-1536fb3ea57668f41c8c160288b3daeab2163639.tar.gz hurd-1536fb3ea57668f41c8c160288b3daeab2163639.tar.bz2 hurd-1536fb3ea57668f41c8c160288b3daeab2163639.zip |
2002-03-05 Marcus Brinkmann <marcus@gnu.org>
* main.c (main): Use memset instead bzero.
Fix error message, and formatting of some comments.
* ptyio.c (pty_io_read): Use memcpy instead bcopy.
* users.c (S_tioctl_tiocflush): Ignore error by bottom handler's
notice_input_flushed.
* users.c (set_state): Likewise.
If bottom handler's set_bits fails, don't adjust terminal state
but return success anyway.
Diffstat (limited to 'term/ptyio.c')
-rw-r--r-- | term/ptyio.c | 2 |
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 |