summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-05-26 13:16:51 -0700
committerJunio C Hamano <gitster@pobox.com>2016-05-26 13:16:51 -0700
commitadbcfe6547fda8fe66618355a8a2031ac27d1a90 (patch)
tree968777634dce3d3831dfbcdfea6e1893a754f44e
parent0f8e831356d4f1a34baf46bb1a6b2d4c89ec9cb8 (diff)
parent50b4a7807f5f1db79a0a4f4400c29bc00efbd307 (diff)
downloadgit-adbcfe6547fda8fe66618355a8a2031ac27d1a90.tar.gz
Merge branch 'maint-2.7' into maint
* maint-2.7: archive-tar: convert snprintf to xsnprintf
-rw-r--r--archive-tar.c2
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,