diff options
Diffstat (limited to 'archival/libunarchive/get_header_ar.c')
-rw-r--r-- | archival/libunarchive/get_header_ar.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/archival/libunarchive/get_header_ar.c b/archival/libunarchive/get_header_ar.c index ebb6f8cbe..e3a71951f 100644 --- a/archival/libunarchive/get_header_ar.c +++ b/archival/libunarchive/get_header_ar.c | |||
@@ -26,15 +26,15 @@ extern char get_header_ar(archive_handle_t *archive_handle) | |||
26 | file_header_t *typed = archive_handle->file_header; | 26 | file_header_t *typed = archive_handle->file_header; |
27 | union { | 27 | union { |
28 | char raw[60]; | 28 | char raw[60]; |
29 | struct { | 29 | struct { |
30 | char name[16]; | 30 | char name[16]; |
31 | char date[12]; | 31 | char date[12]; |
32 | char uid[6]; | 32 | char uid[6]; |
33 | char gid[6]; | 33 | char gid[6]; |
34 | char mode[8]; | 34 | char mode[8]; |
35 | char size[10]; | 35 | char size[10]; |
36 | char magic[2]; | 36 | char magic[2]; |
37 | } formated; | 37 | } formated; |
38 | } ar; | 38 | } ar; |
39 | #ifdef CONFIG_FEATURE_AR_LONG_FILENAMES | 39 | #ifdef CONFIG_FEATURE_AR_LONG_FILENAMES |
40 | static char *ar_long_names; | 40 | static char *ar_long_names; |
@@ -102,7 +102,7 @@ extern char get_header_ar(archive_handle_t *archive_handle) | |||
102 | #endif | 102 | #endif |
103 | } else { | 103 | } else { |
104 | /* short filenames */ | 104 | /* short filenames */ |
105 | typed->name = bb_xstrndup(ar.formated.name, 16); | 105 | typed->name = bb_xstrndup(ar.formated.name, 16); |
106 | } | 106 | } |
107 | 107 | ||
108 | typed->name[strcspn(typed->name, " /")] = '\0'; | 108 | typed->name[strcspn(typed->name, " /")] = '\0'; |