aboutsummaryrefslogtreecommitdiff
path: root/cat-file.c
diff options
context:
space:
mode:
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 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);