/trunk/read.c |
---|
62,8 → 62,8 |
if(c==CR || c==LF){ /* detected end of line */ |
/* look ahead to see if we need to skip a line feed (DOS EOL convention) */ |
if(c == CR && c == LF && p < dataend) |
/* look ahead to see if we need to skip a line feed (DOS CRLF EOL convention) */ |
if(p < dataend && c == CR && *p == LF) |
++p; |
linebuf[lineptr] = 0; /* add terminating NUL to line buffer */ |