diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-10-05 05:24:19 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-10-05 05:24:19 +0000 |
commit | 1e6c3958383493b8d3704fb9c6e6e76294ede24d (patch) | |
tree | c6c755e9139c83e4244a8bf01a8cd3168710720c /tee.c | |
parent | 7374f0f61e0a7574104c25d17c877f8f0c6c88ae (diff) | |
download | busybox-w32-1e6c3958383493b8d3704fb9c6e6e76294ede24d.tar.gz busybox-w32-1e6c3958383493b8d3704fb9c6e6e76294ede24d.tar.bz2 busybox-w32-1e6c3958383493b8d3704fb9c6e6e76294ede24d.zip |
Use wfopen instead of fopen & error_msg, saves 64 bytes
git-svn-id: svn://busybox.net/trunk/busybox@3494 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'tee.c')
-rw-r--r-- | tee.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -45,9 +45,8 @@ tee_main(int argc, char **argv) | |||
45 | files = (FILE **)xmalloc(sizeof(FILE *) * (argc - optind + 1)); | 45 | files = (FILE **)xmalloc(sizeof(FILE *) * (argc - optind + 1)); |
46 | files[nfiles++] = stdout; | 46 | files[nfiles++] = stdout; |
47 | while (optind < argc) { | 47 | while (optind < argc) { |
48 | if ((files[nfiles++] = fopen(argv[optind++], mode)) == NULL) { | 48 | if ((files[nfiles++] = wfopen(argv[optind++], mode)) == NULL) { |
49 | nfiles--; | 49 | nfiles--; |
50 | perror_msg("%s", argv[optind-1]); | ||
51 | status = 1; | 50 | status = 1; |
52 | } | 51 | } |
53 | } | 52 | } |