Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jk/war-on-sprintf' into maint-2.7
author
Junio C Hamano
<gitster@pobox.com>
Thu, 26 May 2016 17:45:37 +0000
(10:45 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 26 May 2016 17:45:37 +0000
(10:45 -0700)
* jk/war-on-sprintf:
archive-tar: convert snprintf to xsnprintf
archive-tar.c
patch
|
blob
|
history
raw
(from parent 1:
a0feb1b
)
diff --git
a/archive-tar.c
b/archive-tar.c
index 501ca97760b1f62ada876d372bd1abbbc41c6cd0..cb99df28142f164da62f5a728eb9019e57804157 100644
(file)
--- 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));
+
x
snprintf(header->chksum, sizeof(header->chksum), "%07o", ustar_header_chksum(header));
}
static int write_extended_header(struct archiver_args *args,