Fix missing '\n' at end of git-cat-file -t output.

This commit is contained in:
Linus Torvalds 2005-05-01 19:40:39 -07:00
parent 11e7d5c594
commit fa9e9c7bc4

View file

@ -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);