summaryrefslogtreecommitdiff
path: root/src/commit.c
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>2010-06-02 19:16:28 +0100
committerRamsay Jones <ramsay@ramsay1.demon.co.uk>2010-06-07 19:44:04 +0100
commit552e23ba566d975b4dd48163b91021892504f021 (patch)
treee044baa468a1c74f9f9da36805445f6888358b49 /src/commit.c
parentf29249340c11b069e46b70fc145c1d7fbe213b94 (diff)
downloadlibgit2-552e23ba566d975b4dd48163b91021892504f021.tar.gz
Fix a bug in the git_oid_to_string() function
When git_oid_to_string() was passed a buffer size larger than GIT_OID_HEXSZ+1, the function placed the c-string NUL char at the wrong position. Fix the code to place the NUL at the end of the (possibly truncated) oid string. Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Diffstat (limited to 'src/commit.c')
0 files changed, 0 insertions, 0 deletions