mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-31 14:58:22 -04:00
Fix logic in ldr_ro_manager
Fix argument type for isdigit/isxdigit
This commit is contained in:
parent
b0a66a63ba
commit
e561919a52
9 changed files with 34 additions and 33 deletions
|
@ -1577,10 +1577,10 @@ int vsscanf(const char *buf, const char *fmt, va_list args)
|
|||
digit = *(str + 1);
|
||||
|
||||
if (!digit
|
||||
|| (base == 16 && !isxdigit(digit))
|
||||
|| (base == 10 && !isdigit(digit))
|
||||
|| (base == 8 && (!isdigit(digit) || digit > '7'))
|
||||
|| (base == 0 && !isdigit(digit)))
|
||||
|| (base == 16 && !isxdigit((unsigned char)digit))
|
||||
|| (base == 10 && !isdigit((unsigned char)digit))
|
||||
|| (base == 8 && (!isdigit((unsigned char)digit) || digit > '7'))
|
||||
|| (base == 0 && !isdigit((unsigned char)digit)))
|
||||
break;
|
||||
|
||||
switch (qualifier) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue