Fix missing '\n' at end of git-cat-file -t output.
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 2 May 2005 02:40:39 +0000 (19:40 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 2 May 2005 02:40:39 +0000 (19:40 -0700)
cat-file.c

index 6bbb0ca..6ff9d55 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);