From fa9e9c7bc4d6437537a78517f7f6909340e25ad9 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Sun, 1 May 2005 19:40:39 -0700 Subject: [PATCH] Fix missing '\n' at end of git-cat-file -t output. --- cat-file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cat-file.c b/cat-file.c index 6bbb0ca0..6ff9d557 100644 --- a/cat-file.c +++ b/cat-file.c @@ -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); -- 2.11.0