Browse Source

Merge branch 'jk/war-on-sprintf' into maint-2.7

* jk/war-on-sprintf:
  archive-tar: convert snprintf to xsnprintf
maint
Junio C Hamano 9 years ago
parent
commit
50b4a7807f
  1. 2
      archive-tar.c

2
archive-tar.c

@ -181,7 +181,7 @@ static void prepare_header(struct archiver_args *args, @@ -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,

Loading…
Cancel
Save