transport-helper: replace checked snprintf with xsnprintf
authorJeff King <peff@peff.net>
Tue, 28 Mar 2017 19:47:00 +0000 (15:47 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 30 Mar 2017 21:59:50 +0000 (14:59 -0700)
commit8c5acfb923a94dc746baa4eef8454cb4c4f18270
treee35bb4589dd528675946667e1f0300d16f89ac68
parent1a168e5c86d2c6cbb57429473357bdf1acdec63c
transport-helper: replace checked snprintf with xsnprintf

We can use xsnprintf to do our truncation check with less
code. The error message isn't as specific, but the point is
that this isn't supposed to trigger in the first place
(because our buffer is big enough to handle any int).

Signed-off-by: Jeff King <peff@peff.net>
transport-helper.c