diff options
-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(); |