summaryrefslogtreecommitdiff
path: root/command/tee.c
diff options
context:
space:
mode:
authorTyler Murphy <tylerm@tylerm.dev>2023-05-14 21:43:02 -0400
committerTyler Murphy <tylerm@tylerm.dev>2023-05-14 21:43:02 -0400
commite735ad6710a82604a206ad29f6cbcdd7dc4b024c (patch)
tree5fe8eebbb7a2bff20bb71bd2368955356979e0a2 /command/tee.c
parentsync (diff)
downloadlazysphere-e735ad6710a82604a206ad29f6cbcdd7dc4b024c.tar.gz
lazysphere-e735ad6710a82604a206ad29f6cbcdd7dc4b024c.tar.bz2
lazysphere-e735ad6710a82604a206ad29f6cbcdd7dc4b024c.zip
refactor and add su
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");