commit: 8c671ed80f4a0c320670962c1fa5efe423996f03
parent 1413ee0cb60c5ce1bc4cc67c6a24afc3ece9f9e4
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sun, 8 Sep 2024 09:38:59 +0200
cmd/split: right type for lines loop
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/split.c b/cmd/split.c
@@ -148,7 +148,7 @@ split_lines()
}
FILE *out = NULL;
- for(int i = 0; i < lines; i++)
+ for(size_t i = 0; i < lines; i++)
{
ssize_t nread = getline(&line, &line_len, in);
if(nread < 0)