More size shrinkage.
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 @@
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;