summaryrefslogtreecommitdiff
path: root/command/tee.c
diff options
context:
space:
mode:
Diffstat (limited to 'command/tee.c')
-rw-r--r--command/tee.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/command/tee.c b/command/tee.c
index 364a13d..b9ff974 100644
--- a/command/tee.c
+++ b/command/tee.c
@@ -71,7 +71,7 @@ COMMAND(tee_cmd) {
return EXIT_SUCCESS;
}
- files = malloc(sizeof(FILE*) * (argc - start));
+ files = xalloc(sizeof(FILE*) * (argc - start));
for (i = start; i < argc; i++) {
FILE* file = get_file(argv[i], flags.append ? "a" : "w");