summaryrefslogtreecommitdiff
path: root/cat-file.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-01 19:40:39 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-01 19:40:39 -0700
commitfa9e9c7bc4d6437537a78517f7f6909340e25ad9 (patch)
tree38130edc56f1cf36fbd7e137c06c679fee1beed1 /cat-file.c
parent11e7d5c594e79258f73c8c2a2e7e90dd60d05ce3 (diff)
downloadgit-fa9e9c7bc4d6437537a78517f7f6909340e25ad9.tar.gz
Fix missing '\n' at end of git-cat-file -t output.
Diffstat (limited to 'cat-file.c')
-rw-r--r--cat-file.c1
1 files changed, 1 insertions, 0 deletions
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);