diff options
author | Jeff King <peff@peff.net> | 2016-05-26 00:28:08 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-05-26 10:44:26 -0700 |
commit | 9e6c1e91a3f06eec45f976ed3ff4e9f445cf7328 (patch) | |
tree | 7d88cfc648ee5c171844200e7737d97802da5217 /Documentation/gitignore.txt | |
parent | compat/mingw.c: remove printf format warning (diff) | |
download | tgif-9e6c1e91a3f06eec45f976ed3ff4e9f445cf7328.tar.xz |
archive-tar: convert snprintf to xsnprintf
Commit f2f0267 (archive-tar: use xsnprintf for trivial
formatting, 2015-09-24) converted cases of "sprintf" to
"xsnprintf", but accidentally left one as just "snprintf".
This meant that we could silently truncate the resulting
buffer instead of flagging an error.
In practice, this is impossible to achieve, as we are
formatting a ustar checksum, which can be at most 7
characters. But the point of xsnprintf is to document and
check for "should be impossible" conditions; this site was
just accidentally mis-converted during f2f0267.
Noticed-by: Paul Green <Paul.Green@stratus.com>
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/gitignore.txt')
0 files changed, 0 insertions, 0 deletions