summaryrefslogtreecommitdiff
path: root/editors/sed.c
diff options
context:
space:
mode:
Diffstat (limited to 'editors/sed.c')
-rw-r--r--editors/sed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/sed.c b/editors/sed.c
index 3e33529..65ca560 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -1194,7 +1194,7 @@ int sed_main(int argc, char **argv)
process_files();
continue;
}
- file = bb_wfopen(argv[i], "r");
+ file = fopen_or_warn(argv[i], "r");
if (!file) {
status = EXIT_FAILURE;
continue;