diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2001-10-05 05:24:19 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2001-10-05 05:24:19 +0000 |
commit | 1d098cefe242f2c1a6195a27fd92f81412509bde (patch) | |
tree | c6c755e9139c83e4244a8bf01a8cd3168710720c /coreutils/tee.c | |
parent | bf265daa470d7647abb7d8738c6f6365bb3478f3 (diff) | |
download | busybox-w32-1d098cefe242f2c1a6195a27fd92f81412509bde.tar.gz busybox-w32-1d098cefe242f2c1a6195a27fd92f81412509bde.tar.bz2 busybox-w32-1d098cefe242f2c1a6195a27fd92f81412509bde.zip |
Use wfopen instead of fopen & error_msg, saves 64 bytes
Diffstat (limited to 'coreutils/tee.c')
-rw-r--r-- | coreutils/tee.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/coreutils/tee.c b/coreutils/tee.c index 439cf7dc5..64a0922b7 100644 --- a/coreutils/tee.c +++ b/coreutils/tee.c | |||
@@ -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 | } |