diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-05-26 10:45:37 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-05-26 10:45:37 -0700 |
commit | 50b4a7807f5f1db79a0a4f4400c29bc00efbd307 (patch) | |
tree | 4bf2da1e1b7bdf2f19cad089ad4c0b6afd3a3272 | |
parent | a0feb1b1870fbb74f65d6a8951e4b2e2a2347ecf (diff) | |
parent | 9e6c1e91a3f06eec45f976ed3ff4e9f445cf7328 (diff) | |
download | git-50b4a7807f5f1db79a0a4f4400c29bc00efbd307.tar.gz |
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, |