From 66ca8eb169f0b07b0e4edba40ec3d18bbded2e33 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sat, 28 Sep 2019 10:56:37 +0200 Subject: [PATCH] fix: fist out emtpy line on end of file --- discspan.c | 1 + 1 file changed, 1 insertion(+) diff --git a/discspan.c b/discspan.c index 88f1729..ddd0423 100644 --- a/discspan.c +++ b/discspan.c @@ -107,6 +107,7 @@ unsigned long fill_array_from_file(FILE *in, struct file_size *fs, if (ignore != NULL) fclose(ignore); + lines--; return lines; } -- 2.39.5