(io_gets, output): Remove the removal of \n in io_gets() and the

readdition of it in output().
This commit is contained in:
Ron Koenderink 2005-11-12 16:40:38 +00:00
parent 89e2b3b481
commit 0918d3c3fc
2 changed files with 4 additions and 8 deletions

View file

@ -125,9 +125,9 @@ ioq_gets(struct ioqueue *ioq, char *buf, int cc, int *eol)
end = &buf[nbytes];
for (p = buf; p < end && *p; p++) {
if (*p == '\n') {
*p = '\0';
*++p = '\0';
*eol = 1;
dequeuecc(ioq, (p - buf) + 1);
dequeuecc(ioq, p - buf);
return buf;
}
}