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>
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
t0501-objects | Loading commit data... | |
.gitignore | Loading commit data... | |
Makefile | Loading commit data... | |
NAMING | Loading commit data... | |
t0001-errno.c | Loading commit data... | |
t0002-refcnt.c | Loading commit data... | |
t0003-strutil.c | Loading commit data... | |
t0020-dirent.c | Loading commit data... | |
t0101-hash.c | Loading commit data... | |
t0101-oid.c | Loading commit data... | |
t0102-objtype.c | Loading commit data... | |
t0103-objhash.c | Loading commit data... | |
t0201-existsloose.c | Loading commit data... | |
t0202-readloose.c | Loading commit data... | |
t0203-readloose.c | Loading commit data... | |
t0301-write.c | Loading commit data... | |
t0401-parse.c | Loading commit data... | |
t0403-lists.c | Loading commit data... | |
t0501-walk.c | Loading commit data... | |
test_helpers.c | Loading commit data... | |
test_helpers.h | Loading commit data... | |
test_lib.c | Loading commit data... | |
test_lib.h | Loading commit data... | |
test_main.c | Loading commit data... | |
tests.supp | Loading commit data... |