fopen(TTY...) to bb_xfopen(), close bug 600

This commit is contained in:
"Vladimir N. Oleynik" 2005-12-15 11:53:22 +00:00
parent 9a14bd04f8
commit 8315cd527f

View File

@ -238,7 +238,7 @@ static void data_readlines(void) {
fclose(fp);
if(inp == NULL)
inp = (inp_stdin) ? fopen(CURRENT_TTY, "r") : stdin;
inp = (inp_stdin) ? bb_xfopen(CURRENT_TTY, "r") : stdin;
if (flags & FLAG_N)
add_linenumbers();