logo

utils

~/.local/bin tools and git-hooks git clone https://hacktivis.me/git/utils.git
commit: 146d81e44d12bac4532f8926063094b550839ea6
parent 563d40faf4f6559d4b51871da922616d59cf0632
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat, 21 Aug 2021 00:25:20 +0200

bin/tee.c: Add explicit cast on argc

Diffstat:

Mbin/tee.c2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/tee.c b/bin/tee.c @@ -40,7 +40,7 @@ main(int argc, char *argv[]) if(argc > 0) { - fds = malloc(sizeof(FILE *) * argc); + fds = malloc(sizeof(FILE *) * (size_t)argc); if(!fds) {