diff options
Diffstat (limited to 'sed.c')
-rw-r--r-- | sed.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -757,7 +757,7 @@ extern int sed_main(int argc, char **argv) | |||
757 | for (i = optind; i < argc; i++) { | 757 | for (i = optind; i < argc; i++) { |
758 | file = fopen(argv[i], "r"); | 758 | file = fopen(argv[i], "r"); |
759 | if (file == NULL) { | 759 | if (file == NULL) { |
760 | error_msg("%s: %s\n", argv[i], strerror(errno)); | 760 | perror_msg("%s", argv[i]); |
761 | } else { | 761 | } else { |
762 | process_file(file); | 762 | process_file(file); |
763 | fclose(file); | 763 | fclose(file); |