Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2001-10-05 09:24:19 +0400
committerGlenn L McGrath <bug1@ihug.co.nz>2001-10-05 09:24:19 +0400
commit1d098cefe242f2c1a6195a27fd92f81412509bde (patch)
treec6c755e9139c83e4244a8bf01a8cd3168710720c /coreutils
parentbf265daa470d7647abb7d8738c6f6365bb3478f3 (diff)
Use wfopen instead of fopen & error_msg, saves 64 bytes
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/tee.c3
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)
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;
}
}