From cec53b4ff88f2a9805d4166ff1483ee0fca23030 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Sun, 13 Dec 2020 18:53:34 +0900 Subject: [PATCH] temporary --- object_file.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/object_file.cc b/object_file.cc index 07a7e2c4..68c2561e 100644 --- a/object_file.cc +++ b/object_file.cc @@ -837,7 +837,7 @@ std::vector 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, '/')}; }