]> Dogcows Code - chaz/tar/blobdiff - src/create.c
(split_long_name): Fix maximum length estimation. Patch by Jim Lowe.
[chaz/tar] / src / create.c
index e1af8db8a9857915bad15ae00da77bc8da70029b..f2db9c27fd542ff234c97f93f3cd309d9c8c290d 100644 (file)
@@ -494,7 +494,7 @@ split_long_name (const char *name, size_t length)
   size_t i;
 
   if (length > PREFIX_FIELD_SIZE)
-    length = PREFIX_FIELD_SIZE+2;
+    length = PREFIX_FIELD_SIZE + 1;
   for (i = length - 1; i > 0; i--)
     if (ISSLASH (name[i]))
       break;
@@ -1520,6 +1520,8 @@ dump_file0 (struct tar_stat_info *st, char const *p,
              abort ();
            }
 
+         file_count_links (st);
+         
          ok = status == dump_status_ok;
        }
 
This page took 0.021557 seconds and 4 git commands to generate.