summaryrefslogtreecommitdiff
path: root/term
diff options
context:
space:
mode:
Diffstat (limited to 'term')
-rw-r--r--term/ptyio.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/term/ptyio.c b/term/ptyio.c
index 22a0531e..cd8f1261 100644
--- a/term/ptyio.c
+++ b/term/ptyio.c
@@ -315,7 +315,10 @@ pty_io_read (struct trivfs_protid *cred,
char *cp = *data;
if (packet_mode || user_ioctl_mode)
- *cp++ = TIOCPKT_DATA;
+ {
+ *cp++ = TIOCPKT_DATA;
+ --size;
+ }
while (size--)
*cp++ = dequeue (outputq);
}