diff options
Diffstat (limited to 'command/tee.c')
-rw-r--r-- | command/tee.c | 2 |
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"); |