From: Bastian Dehn Date: Sat, 28 Sep 2019 08:56:37 +0000 (+0200) Subject: fix: fist out emtpy line on end of file X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=66ca8eb169f0b07b0e4edba40ec3d18bbded2e33;p=discspan.git fix: fist out emtpy line on end of file --- 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; }