diff options
| author | Jeff King <peff@peff.net> | 2015-09-24 17:06:53 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2015-09-25 10:18:18 -0700 |
| commit | 330c8e26701c33f1d74dbe3c2692f29b5ed4ba5f (patch) | |
| tree | 3eb1ae60ae92a3d2ed8f36216bb207847947ee23 /commit.h | |
| parent | grep: use xsnprintf to format failure message (diff) | |
| download | git-330c8e26701c33f1d74dbe3c2692f29b5ed4ba5f.tar.gz git-330c8e26701c33f1d74dbe3c2692f29b5ed4ba5f.zip | |
entry.c: convert strcpy to xsnprintf
This particular conversion is non-obvious, because nobody
has passed our function the length of the destination
buffer. However, the interface to checkout_entry specifies
that the buffer must be at least TEMPORARY_FILENAME_LENGTH
bytes long, so we can check that (meaning the existing code
was not buggy, but merely worrisome to somebody reading it).
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
0 files changed, 0 insertions, 0 deletions
