commit | 8315cd527f00b59145d205bc11c0dc9f51f58fd2 | [log] [tgz] |
---|---|---|
author | "Vladimir N. Oleynik" <dzo@simtreas.ru> | Thu Dec 15 11:53:22 2005 +0000 |
committer | "Vladimir N. Oleynik" <dzo@simtreas.ru> | Thu Dec 15 11:53:22 2005 +0000 |
tree | 8ba11572aa6a5b4c63dc1c2b999c1107bf67c51d | |
parent | 9a14bd04f879499df1cf3d88f6bf9a1257380768 [diff] [blame] |
fopen(TTY...) to bb_xfopen(), close bug 600
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 @@ 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();