diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-05-26 19:45:37 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-05-26 19:45:37 +0200 |
commit | 50b4a7807f5f1db79a0a4f4400c29bc00efbd307 (patch) | |
tree | 4bf2da1e1b7bdf2f19cad089ad4c0b6afd3a3272 | |
parent | Merge branch 'mm/doc-hooks-linkgit-fix' into maint (diff) | |
parent | archive-tar: convert snprintf to xsnprintf (diff) | |
download | git-50b4a7807f5f1db79a0a4f4400c29bc00efbd307.tar.xz git-50b4a7807f5f1db79a0a4f4400c29bc00efbd307.zip |
Merge branch 'jk/war-on-sprintf' into maint-2.7
* jk/war-on-sprintf:
archive-tar: convert snprintf to xsnprintf
-rw-r--r-- | archive-tar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archive-tar.c b/archive-tar.c index 501ca97760..cb99df2814 100644 --- a/archive-tar.c +++ b/archive-tar.c @@ -181,7 +181,7 @@ static void prepare_header(struct archiver_args *args, memcpy(header->magic, "ustar", 6); memcpy(header->version, "00", 2); - snprintf(header->chksum, sizeof(header->chksum), "%07o", ustar_header_chksum(header)); + xsnprintf(header->chksum, sizeof(header->chksum), "%07o", ustar_header_chksum(header)); } static int write_extended_header(struct archiver_args *args, |