diff options
author | Rob Landley | 2006-05-29 07:42:02 +0000 |
---|---|---|
committer | Rob Landley | 2006-05-29 07:42:02 +0000 |
commit | 1ec5b2905484b7904aabb01f56c70265fb538c82 (patch) | |
tree | 87292bfd7e99ce26b226518e244f4a96914397f9 /archival/libunarchive/get_header_tar.c | |
parent | a6e131dab39ee67522687a56b39ed815b9ae15ec (diff) | |
download | busybox-1ec5b2905484b7904aabb01f56c70265fb538c82.zip busybox-1ec5b2905484b7904aabb01f56c70265fb538c82.tar.gz |
More size shrinkage.
Diffstat (limited to 'archival/libunarchive/get_header_tar.c')
-rw-r--r-- | archival/libunarchive/get_header_tar.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/archival/libunarchive/get_header_tar.c b/archival/libunarchive/get_header_tar.c index c9308f9..f3f04b5 100644 --- a/archival/libunarchive/get_header_tar.c +++ b/archival/libunarchive/get_header_tar.c @@ -168,17 +168,15 @@ char get_header_tar(archive_handle_t *archive_handle) break; #ifdef CONFIG_FEATURE_TAR_GNU_EXTENSIONS case 'L': { - longname = xmalloc(file_header->size + 1); + longname = xzalloc(file_header->size + 1); archive_xread_all(archive_handle, longname, file_header->size); - longname[file_header->size] = '\0'; archive_handle->offset += file_header->size; return(get_header_tar(archive_handle)); } case 'K': { - linkname = xmalloc(file_header->size + 1); + linkname = xzalloc(file_header->size + 1); archive_xread_all(archive_handle, linkname, file_header->size); - linkname[file_header->size] = '\0'; archive_handle->offset += file_header->size; file_header->name = linkname; |