mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
powerpc: Fix POWER10 selection
Add a line that was missing from a previous commit.
Without increasing str, the null-byte is not validated, and
_dl_string_platform returns -1.
Fixes: d2ba3677da
("powerpc: Add support for POWER10")
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
parent
c79607a474
commit
f6add169c8
@ -96,6 +96,7 @@ _dl_string_platform (const char *str)
|
||||
if (str[1] == '0')
|
||||
{
|
||||
ret = _DL_FIRST_PLATFORM + PPC_PLATFORM_POWER10;
|
||||
str++;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user