aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-05-19 12:22:11 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-05-19 12:22:11 +0000
commita85a63f6ee9f5815887158976bbf6b9a5a441db4 (patch)
tree45a58b6b75d9cb96a9fbb0aff75b22d018fb3741
parente2e56c7c4129de7d20df42e8239fd304c81ef29b (diff)
downloadbusybox-a85a63f6ee9f5815887158976bbf6b9a5a441db4.tar.gz
- fix invalid mode
-rw-r--r--miscutils/less.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/less.c b/miscutils/less.c
index 84e4b612d..ecc55688c 100644
--- a/miscutils/less.c
+++ b/miscutils/less.c
@@ -210,7 +210,7 @@ static void data_readlines(void)
char current_line[256];
FILE *fp;
- fp = (inp_stdin) ? stdin : bb_xfopen(filename, "rt");
+ fp = (inp_stdin) ? stdin : bb_xfopen(filename, "r");
flines = NULL;
for (i = 0; (feof(fp)==0) && (i <= MAXLINES); i++) {
strcpy(current_line, "");