public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] elf: Account for glibc-hwcaps/ prefix in _dl_important_hwcaps
@ 2020-12-23 15:28 Florian Weimer
0 siblings, 0 replies; only message in thread
From: Florian Weimer @ 2020-12-23 15:28 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8a30bb4e0604aefcf28f20360fc8ba8ef8604b9c
commit 8a30bb4e0604aefcf28f20360fc8ba8ef8604b9c
Author: Florian Weimer <fweimer@redhat.com>
Date: Wed Dec 23 12:07:20 2020 +0100
elf: Account for glibc-hwcaps/ prefix in _dl_important_hwcaps
Diff:
---
elf/dl-hwcaps.c | 1 +
1 file changed, 1 insertion(+)
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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-12-23 15:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-23 15:28 [glibc] elf: Account for glibc-hwcaps/ prefix in _dl_important_hwcaps Florian Weimer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).