aboutsummaryrefslogtreecommitdiff
path: root/cut.c
diff options
context:
space:
mode:
Diffstat (limited to 'cut.c')
-rw-r--r--cut.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/cut.c b/cut.c
index abe05726b..3ed264870 100644
--- a/cut.c
+++ b/cut.c
@@ -344,10 +344,8 @@ extern int cut_main(int argc, char **argv)
344 int i; 344 int i;
345 FILE *file; 345 FILE *file;
346 for (i = optind; i < argc; i++) { 346 for (i = optind; i < argc; i++) {
347 file = fopen(argv[i], "r"); 347 file = wfopen(argv[i], "r");
348 if (file == NULL) { 348 if(file) {
349 perror_msg("%s", argv[i]);
350 } else {
351 cut_file(file); 349 cut_file(file);
352 fclose(file); 350 fclose(file);
353 } 351 }