mirror of git://sourceware.org/git/glibc.git
elf: Account for glibc-hwcaps/ prefix in _dl_important_hwcaps
This commit is contained in:
parent
be37b80705
commit
8a30bb4e06
|
@ -192,6 +192,7 @@ _dl_important_hwcaps (const char *glibc_hwcaps_prepend,
|
||||||
|
|
||||||
/* Each hwcaps subdirectory has a GLIBC_HWCAPS_PREFIX string prefix
|
/* Each hwcaps subdirectory has a GLIBC_HWCAPS_PREFIX string prefix
|
||||||
and a "/" suffix once stored in the result. */
|
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)
|
size_t total = (hwcaps_counts.count * (strlen (GLIBC_HWCAPS_PREFIX) + 1)
|
||||||
+ hwcaps_counts.total_length);
|
+ hwcaps_counts.total_length);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue