Author | Jamozed <[email protected]> |
Date | 2020-07-09 10:12:02 |
Commit | d8671c354dd4484aee924fe9a28255b71a249450 |
Parent | b634f01c8e1611ea6faf2efe3980549747f33a98 |
tee: Fix implicit conversion warning
Diffstat
M | src/tee.c | | | 2 | +- |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tee.c b/src/tee.c index f837b01..a904714 100644 --- a/src/tee.c +++ b/src/tee.c @@ -68,7 +68,7 @@ int main(int ac, char *av[]) { A0 = av[0]; setvbuf(stdout, NULL, _IONBF, 0); bool warned = false; - FILE **files = (FILE **)malloc(sizeof (FILE) * (ac - opt.ind)); + FILE **files = (FILE **)malloc(sizeof (FILE) * (unsigned)(ac - opt.ind)); if (!files) { error(1, "%s", serr()); } FILE **f = files;