libgit2/libgit2 — pull request #869 by joshtriplett (2012-08-12 12:48:29+00:00)
Title: git_message_prettify: Include both \n and \0 when checking for available space

git_message_prettify requires that the output buffer has enough space
for an added \n, but doesn't ensure that the output buffer has enough
space for the trailing \0. strlen(message) gives the length of the
input buffer without the trailing \0, so add 2 to account for both the
\n and the \0.