diff options
Diffstat (limited to 'libgloss/read.c')
-rw-r--r-- | libgloss/read.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgloss/read.c b/libgloss/read.c index eb86ea3..419a8ed 100644 --- a/libgloss/read.c +++ b/libgloss/read.c @@ -31,7 +31,7 @@ _DEFUN (read, (fd, buf, nbytes), for (i = 0; i < nbytes; i++) { *(buf + i) = inbyte(); if ((*(buf + i) == '\n') || (*(buf + i) == '\r')) { - (*(buf + i + 1)) = 0; + i++; break; } } |