Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-02 06:40:39 +0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-02 06:40:39 +0400
commitfa9e9c7bc4d6437537a78517f7f6909340e25ad9 (patch)
tree38130edc56f1cf36fbd7e137c06c679fee1beed1 /cat-file.c
parent11e7d5c594e79258f73c8c2a2e7e90dd60d05ce3 (diff)
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);