- fix invalid mode
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 19 May 2006 12:22:11 +0000 (12:22 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 19 May 2006 12:22:11 +0000 (12:22 -0000)
miscutils/less.c

index 84e4b612dc49141eb837a5a36b6ead210bb54206..ecc55688c4a0f4c55aefea9f0d9fc12a21fba42b 100644 (file)
@@ -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, "");