git-tag-script updates.
[gitweb.git] / tar-tree.c
index 4c47fc2bec1e6305d122865e2da318bc795ab8ef..673ac66ed6fd37eeeaa8580b2e43f0e2cee91a16 100644 (file)
@@ -430,8 +430,8 @@ int main(int argc, char **argv)
        if (!archive_time)
                archive_time = time(NULL);
        if (basedir)
-               write_header("0", TYPEFLAG_DIR, NULL, NULL, basedir, 040755,
-                            NULL, 0);
+               write_header((unsigned char *)"0", TYPEFLAG_DIR, NULL, NULL,
+                       basedir, 040755, NULL, 0);
        traverse_tree(buffer, size, NULL);
        free(buffer);
        write_trailer();