1
1
mirror of https://github.com/rui314/mold.git synced 2025-01-01 05:02:36 +03:00

temporary

This commit is contained in:
Rui Ueyama 2020-12-13 18:53:34 +09:00
parent d322939443
commit cec53b4ff8

View File

@ -837,7 +837,7 @@ std::vector<MemoryMappedFile> read_archive_members(MemoryMappedFile mb) {
if (hdr.ar_name[0] == '/') {
const char *start = strtab.data() + atoi(hdr.ar_name + 1);
name = {start, strchr(start, '/')};
name = {start, strstr(start, "/\n")};
} else {
name = {hdr.ar_name, strchr(hdr.ar_name, '/')};
}