From fa9e9c7bc4d6437537a78517f7f6909340e25ad9 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Sun, 1 May 2005 19:40:39 -0700 Subject: Fix missing '\n' at end of git-cat-file -t output. diff --git a/cat-file.c b/cat-file.c index 6bbb0ca..6ff9d55 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); -- cgit v0.10.2-6-g49f6