aboutsummaryrefslogtreecommitdiff
path: root/sed.c
diff options
context:
space:
mode:
Diffstat (limited to 'sed.c')
-rw-r--r--sed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sed.c b/sed.c
index 812f62145..a7152e52a 100644
--- a/sed.c
+++ b/sed.c
@@ -757,7 +757,7 @@ extern int sed_main(int argc, char **argv)
for (i = optind; i < argc; i++) {
file = fopen(argv[i], "r");
if (file == NULL) {
- error_msg("%s: %s\n", argv[i], strerror(errno));
+ perror_msg("%s", argv[i]);
} else {
process_file(file);
fclose(file);