From 1e6c3958383493b8d3704fb9c6e6e76294ede24d Mon Sep 17 00:00:00 2001 From: bug1 Date: Fri, 5 Oct 2001 05:24:19 +0000 Subject: Use wfopen instead of fopen & error_msg, saves 64 bytes git-svn-id: svn://busybox.net/trunk/busybox@3494 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- tee.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tee.c') diff --git a/tee.c b/tee.c index 439cf7dc5..64a0922b7 100644 --- a/tee.c +++ b/tee.c @@ -45,9 +45,8 @@ tee_main(int argc, char **argv) files = (FILE **)xmalloc(sizeof(FILE *) * (argc - optind + 1)); files[nfiles++] = stdout; while (optind < argc) { - if ((files[nfiles++] = fopen(argv[optind++], mode)) == NULL) { + if ((files[nfiles++] = wfopen(argv[optind++], mode)) == NULL) { nfiles--; - perror_msg("%s", argv[optind-1]); status = 1; } } -- cgit v1.2.3-55-g6feb