summaryrefslogtreecommitdiff
path: root/Documentation/RelNotes/1.7.5.3.txt
diff options
context:
space:
mode:
authorLibravatar Elia Pinto <gitter.spiros@gmail.com>2017-01-31 13:45:35 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-01-31 10:09:00 -0800
commit4a5281917b2b84affa9942c991419115088aec0e (patch)
tree201277e7d106ba5e8283fb81715f46924f72d997 /Documentation/RelNotes/1.7.5.3.txt
parentbuiltin/commit.c: remove the PATH_MAX limitation via dynamic allocation (diff)
downloadtgif-4a5281917b2b84affa9942c991419115088aec0e.tar.xz
builtin/commit.c: switch to strbuf, instead of snprintf()
Switch to dynamic allocation with strbuf, so we can avoid dealing with magic numbers in the code and reduce the cognitive burden from the programmers. The original code is correct, but programmers no longer have to count bytes needed for static allocation to know that. As a side effect of this change, we also reduce the snprintf() calls, that may silently truncate results if the programmer is not careful. Helped-by: René Scharfe <l.s.r@web.de> Helped-by: Junio C Hamano <gitster@pobox.com> Helped-by: Jeff King <peff@peff.net> Signed-off-by: Elia Pinto <gitter.spiros@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/RelNotes/1.7.5.3.txt')
0 files changed, 0 insertions, 0 deletions