]> gitweb.hhaalo.de Git - discspan.git/commitdiff
Filesize inkl. Overhead
authorBastian Dehn <hhaalo@arcor.de>
Sat, 1 Aug 2015 21:41:43 +0000 (23:41 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 1 Aug 2015 21:41:43 +0000 (23:41 +0200)
discspan.c

index 3edf541215de7a604e2e4257a46ccd7f2858527e..8985a4daa31c82bbabdced8181c680af6da06747 100644 (file)
@@ -45,7 +45,8 @@ void splitter(const char *input, char *output, const char *rest, unsigned long l
        while (fscanf(in, "%[^\n]\n", pfad) == 1)
        {
                stat(pfad, &st);
-               filesize = st.st_size;
+               // filesize inklusive overhead
+               filesize = 33 + strlen(pfad) + st.st_size;
                if (splitgroesse >= filesize)
                {
                        splitgroesse -= filesize;