- fix invalid mode

This commit is contained in:
Bernhard Reutner-Fischer 2006-05-19 12:22:11 +00:00
parent e2e56c7c41
commit a85a63f6ee

View 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, "");