about summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-12-23 12:07:20 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-12-23 15:47:22 +0100
commit8a30bb4e0604aefcf28f20360fc8ba8ef8604b9c (patch)
tree1b6a3b26bd1d6c0efebdb8bf510bfb312f14542a /elf
parentbe37b807053d7bd4b33b9d74dc97860fc58335d5 (diff)
downloadglibc-8a30bb4e0604aefcf28f20360fc8ba8ef8604b9c.tar.gz
glibc-8a30bb4e0604aefcf28f20360fc8ba8ef8604b9c.tar.xz
glibc-8a30bb4e0604aefcf28f20360fc8ba8ef8604b9c.zip
elf: Account for glibc-hwcaps/ prefix in _dl_important_hwcaps
Diffstat (limited to 'elf')
-rw-r--r--elf/dl-hwcaps.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/elf/dl-hwcaps.c b/elf/dl-hwcaps.c
index 000e3c0eb9..6c394714d8 100644
--- a/elf/dl-hwcaps.c
+++ b/elf/dl-hwcaps.c
@@ -192,6 +192,7 @@ _dl_important_hwcaps (const char *glibc_hwcaps_prepend,
 
   /* Each hwcaps subdirectory has a GLIBC_HWCAPS_PREFIX string prefix
      and a "/" suffix once stored in the result.  */
+  hwcaps_counts.maximum_length += strlen (GLIBC_HWCAPS_PREFIX) + 1;
   size_t total = (hwcaps_counts.count * (strlen (GLIBC_HWCAPS_PREFIX) + 1)
 		  + hwcaps_counts.total_length);