used to dump core on empty files
This commit is contained in:
parent
f5099e7d9a
commit
13a3574979
|
@ -41,13 +41,18 @@ _fill()
|
|||
static int sz;
|
||||
|
||||
if (_ich && _ich < &text[sz]) return _ich++, '\0';
|
||||
_ich = text;
|
||||
if (sys_read(fd, text, BUFSIZ, &sz) &&
|
||||
sz > 0
|
||||
) {
|
||||
text[sz] = '\0';
|
||||
return _ich = text, (*_ich++&0377);
|
||||
return (*_ich++&0377);
|
||||
}
|
||||
else {
|
||||
sz = 0;
|
||||
text[0] = 0;
|
||||
return EOF;
|
||||
}
|
||||
else return EOF;
|
||||
}
|
||||
|
||||
#define NARGS 3 /* Maximum number of arguments */
|
||||
|
|
Loading…
Reference in a new issue