elf: Fix clang -Wstring-plus-int on rtld.c

clang issues an warning adding 'const unsigned char' to a string
does not append to the string.

Use array indexes instead of string addition (it is simpler than
add a warning suppression).

Reviewed-by: Sam James <sam@gentoo.org>
This commit is contained in:
Adhemerval Zanella 2025-10-17 16:12:48 -03:00
parent 6eb1d9a9ed
commit d7dbcab417
1 changed files with 1 additions and 1 deletions

View File

@ -2494,7 +2494,7 @@ Valid options for the LD_DEBUG environment variable are:\n\n");
for (cnt = 0; cnt < ndebopts; ++cnt)
_dl_printf (" %.*s%s%s\n", debopts[cnt].len, debopts[cnt].name,
" " + debopts[cnt].len - 3,
&" "[debopts[cnt].len - 3],
debopts[cnt].helptext);
_dl_printf ("\n\