accidentally applied wrong (old) patch, fixing up...
[oweals/busybox.git] / miscutils / strings.c
index dae17315ec89c65de9b3f10faed377bbc2ba7fcf..0d5576e9b2aea464567bb8540cbec3f7c70e6e22 100644 (file)
@@ -45,7 +45,7 @@ int strings_main(int argc, char **argv)
        }
 
        do {
-               file = bb_wfopen(*argv, "r");
+               file = fopen_or_warn(*argv, "r");
                if (file) {
 PIPE:
                        count = 0;
@@ -75,7 +75,7 @@ PIPE:
                                }
                                count++;
                        } while (c != EOF);
-                       bb_fclose_nonstdin(file);
+                       fclose_if_not_stdin(file);
                } else {
                        status = EXIT_FAILURE;
                }