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.tokkee.org/?a=commitdiff_plain;h=fa9e9c7bc4d6437537a78517f7f6909340e25ad9;p=git.git Fix missing '\n' at end of git-cat-file -t output. --- diff --git a/cat-file.c b/cat-file.c index 6bbb0ca01..6ff9d5576 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);