diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-01 19:40:39 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-01 19:40:39 -0700 |
commit | fa9e9c7bc4d6437537a78517f7f6909340e25ad9 (patch) | |
tree | 38130edc56f1cf36fbd7e137c06c679fee1beed1 /cat-file.c | |
parent | 11e7d5c594e79258f73c8c2a2e7e90dd60d05ce3 (diff) | |
download | git-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.c | 1 |
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); |