summaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
author"Vladimir N. Oleynik"2005-12-15 11:53:22 +0000
committer"Vladimir N. Oleynik"2005-12-15 11:53:22 +0000
commit8315cd527f00b59145d205bc11c0dc9f51f58fd2 (patch)
tree8ba11572aa6a5b4c63dc1c2b999c1107bf67c51d /miscutils
parent9a14bd04f879499df1cf3d88f6bf9a1257380768 (diff)
downloadbusybox-8315cd527f00b59145d205bc11c0dc9f51f58fd2.zip
busybox-8315cd527f00b59145d205bc11c0dc9f51f58fd2.tar.gz
fopen(TTY...) to bb_xfopen(), close bug 600
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/less.c2
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();