diff options
author | 2016-05-26 13:16:51 -0700 | |
---|---|---|
committer | 2016-05-26 13:16:51 -0700 | |
commit | adbcfe6547fda8fe66618355a8a2031ac27d1a90 (patch) | |
tree | 968777634dce3d3831dfbcdfea6e1893a754f44e | |
parent | Git 2.8.3 (diff) | |
parent | Merge branch 'jk/war-on-sprintf' into maint-2.7 (diff) | |
download | tgif-adbcfe6547fda8fe66618355a8a2031ac27d1a90.tar.xz |
Merge branch 'maint-2.7' into maint
* maint-2.7:
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, |