mirror of
https://github.com/sheumann/hush.git
synced 2024-08-20 19:29:02 +00:00
fopen(TTY...) to bb_xfopen(), close bug 600
This commit is contained in:
parent
9a14bd04f8
commit
8315cd527f
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user