[PATCH] git-local-pull updates
[gitweb.git] / cat-file.c
index 6bbb0ca0174265626a228b143fe348f4eb186f0c..6ff9d5576a4317020b5a42cb90846668a2a6ca40 100644 (file)
@@ -21,6 +21,7 @@ int main(int argc, char **argv)
                        buf = type;
                        size = strlen(type);
                        type[size] = '\n';
+                       size++;
                }
        } else {
                buf = read_object_with_reference(sha1, argv[1], &size, NULL);