]> gitweb.hhaalo.de Git - discspan.git/commitdiff
fix: fist out emtpy line on end of file
authorBastian Dehn <hhaalo@arcor.de>
Sat, 28 Sep 2019 08:56:37 +0000 (10:56 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 28 Sep 2019 08:56:37 +0000 (10:56 +0200)
discspan.c

index 88f1729e9a7a9b313dc549c3a025b8c4dddbc936..ddd04237a6a6c7a4d7b4af861cd25c94bf6ed237 100644 (file)
@@ -107,6 +107,7 @@ unsigned long fill_array_from_file(FILE *in, struct file_size *fs,
        if (ignore != NULL)
                fclose(ignore);
 
+       lines--;
        return lines;
 }