aboutsummaryrefslogtreecommitdiff
path: root/miscutils/strings.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/strings.c')
-rw-r--r--miscutils/strings.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/strings.c b/miscutils/strings.c
index dae17315e..0d5576e9b 100644
--- a/miscutils/strings.c
+++ b/miscutils/strings.c
@@ -45,7 +45,7 @@ int strings_main(int argc, char **argv)
45 } 45 }
46 46
47 do { 47 do {
48 file = bb_wfopen(*argv, "r"); 48 file = fopen_or_warn(*argv, "r");
49 if (file) { 49 if (file) {
50PIPE: 50PIPE:
51 count = 0; 51 count = 0;
@@ -75,7 +75,7 @@ PIPE:
75 } 75 }
76 count++; 76 count++;
77 } while (c != EOF); 77 } while (c != EOF);
78 bb_fclose_nonstdin(file); 78 fclose_if_not_stdin(file);
79 } else { 79 } else {
80 status = EXIT_FAILURE; 80 status = EXIT_FAILURE;
81 } 81 }