From: Linus Torvalds Date: Mon, 2 May 2005 02:40:39 +0000 (-0700) Subject: Fix missing '\n' at end of git-cat-file -t output. X-Git-Tag: v0.99~667 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/fa9e9c7bc4d6437537a78517f7f6909340e25ad9?ds=inline;hp=--cc Fix missing '\n' at end of git-cat-file -t output. --- fa9e9c7bc4d6437537a78517f7f6909340e25ad9 diff --git a/cat-file.c b/cat-file.c index 6bbb0ca017..6ff9d5576a 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);