diff options
author | Jeff King <peff@peff.net> | 2015-09-24 17:06:46 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-09-25 10:18:18 -0700 |
commit | f5691aa640ae2c1c5f85037e093de7f310c0eac7 (patch) | |
tree | 7b0aace2094c7f2368d821b61b5fd5aa40d4fd49 /xdiff/xmerge.c | |
parent | find_short_object_filename: convert sprintf to xsnprintf (diff) | |
download | tgif-f5691aa640ae2c1c5f85037e093de7f310c0eac7.tar.xz |
stop_progress_msg: convert sprintf to xsnprintf
The usual arguments for using xsnprintf over sprintf apply,
but this case is a little tricky. We print to a fixed-size
buffer if we have room, and otherwise to an allocated
buffer. So there should be no overflow here, but it is still
good to communicate our intention, as well as to check our
earlier math for how much space the string will need.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'xdiff/xmerge.c')
0 files changed, 0 insertions, 0 deletions