summaryrefslogtreecommitdiff
path: root/git-gui/lib/transport.tcl
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2018-07-13 16:43:50 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-07-16 13:59:39 -0700
commit022d2ac1f3f89f5af1e712f72bfc69c716d64926 (patch)
treeeebe147e971a2617ccc5c5f420a6a79d936ac4b6 /git-gui/lib/transport.tcl
parentblame: release string_list after use in parse_color_fields() (diff)
downloadtgif-022d2ac1f3f89f5af1e712f72bfc69c716d64926.tar.xz
blame: prefer xsnprintf to strcpy for colors
Our color buffers are all COLOR_MAXLEN, which fits the largest possible color. So we can never overflow the buffer by copying an existing color. However, using strcpy() makes it harder to audit the code-base for calls that _are_ problems. We should use something like xsnprintf(), which shows the reader that we expect this never to fail (and provides a run-time assertion if it does, just in case). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-gui/lib/transport.tcl')
0 files changed, 0 insertions, 0 deletions