]> git.ipfire.org Git - thirdparty/git.git/commit - fast-import.c
fast-import: use xsnprintf for formatting headers
authorJeff King <peff@peff.net>
Fri, 24 Mar 2017 17:26:24 +0000 (13:26 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 24 Mar 2017 19:34:07 +0000 (12:34 -0700)
commit98718242cfd18f106dfcd7663282fb9906fd38a5
treece6edc4110674db32066ad0ba81cc836db565c6b
parent614b19542f649945774a084f2bcf56191f46947c
fast-import: use xsnprintf for formatting headers

The stream_blob() function checks the return value of
snprintf and dies. This is more simply done with
xsnprintf (and matches the similar call in store_object).

The message the user would get is less specific, but since
the point is that this _shouldn't_ ever happen, that's OK.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fast-import.c