diff options
author | "Vladimir N. Oleynik" | 2005-12-15 11:53:22 +0000 |
---|---|---|
committer | "Vladimir N. Oleynik" | 2005-12-15 11:53:22 +0000 |
commit | 8315cd527f00b59145d205bc11c0dc9f51f58fd2 (patch) | |
tree | 8ba11572aa6a5b4c63dc1c2b999c1107bf67c51d /miscutils | |
parent | 9a14bd04f879499df1cf3d88f6bf9a1257380768 (diff) | |
download | busybox-8315cd527f00b59145d205bc11c0dc9f51f58fd2.zip busybox-8315cd527f00b59145d205bc11c0dc9f51f58fd2.tar.gz |
fopen(TTY...) to bb_xfopen(), close bug 600
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/less.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/less.c b/miscutils/less.c index 189b886..0b0dc0c 100644 --- a/miscutils/less.c +++ b/miscutils/less.c @@ -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(); |