summaryrefslogtreecommitdiffstats
path: root/libbb
diff options
context:
space:
mode:
Diffstat (limited to 'libbb')
-rw-r--r--libbb/unarchive.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libbb/unarchive.c b/libbb/unarchive.c
index bb70ccb..24877e7 100644
--- a/libbb/unarchive.c
+++ b/libbb/unarchive.c
@@ -606,6 +606,10 @@ file_header_t *get_header_tar(FILE *tar_stream)
tar_entry->name = concat_path_file(tar.formated.prefix, tar.formated.name);
}
+ if (strlen(tar_entry->name) > 100) {
+ tar_entry->name[100] = 0;
+ }
+
// tar_entry->name = xstrdup(tar.formated.name);
/*