summaryrefslogtreecommitdiff
path: root/notes-cache.c
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2015-09-24 17:07:25 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-09-25 10:18:18 -0700
commit0cb9d6d6b63ad7fea4ca8363f7f1f921b1e16ec7 (patch)
treec1d90cc81d90a29a6f110440763f0e4ed91ff5a8 /notes-cache.c
parentresolve_ref: use strbufs for internal buffers (diff)
downloadtgif-0cb9d6d6b63ad7fea4ca8363f7f1f921b1e16ec7.tar.xz
upload-archive: convert sprintf to strbuf
When we report an error to the client, we format it into a fixed-size buffer using vsprintf(). This can't actually overflow in practice, since we only format a very tame subset of strings (mostly strerror() output). However, it's hard to tell immediately, so let's just use a strbuf so readers do not have to wonder. We do add an allocation here, but the performance is not important; the next step is to call die() anyway. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'notes-cache.c')
0 files changed, 0 insertions, 0 deletions