mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-11-09 22:56:35 +00:00
Fix argument type for isalnum and toupper
This commit is contained in:
parent
09ab3efddd
commit
d09be18359
3 changed files with 11 additions and 11 deletions
|
@ -508,7 +508,7 @@ char *uuid_string(char *buf, char *end, const uint8_t *addr,
|
||||||
if (uc) {
|
if (uc) {
|
||||||
p = uuid;
|
p = uuid;
|
||||||
do {
|
do {
|
||||||
*p = toupper(*p);
|
*p = toupper((unsigned char)*p);
|
||||||
} while (*(++p));
|
} while (*(++p));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1177,7 +1177,7 @@ do { \
|
||||||
case FORMAT_TYPE_PTR:
|
case FORMAT_TYPE_PTR:
|
||||||
save_arg(void *);
|
save_arg(void *);
|
||||||
/* skip all alphanumeric pointer suffixes */
|
/* skip all alphanumeric pointer suffixes */
|
||||||
while (isalnum(*fmt))
|
while (isalnum((unsigned char)*fmt))
|
||||||
fmt++;
|
fmt++;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -1340,7 +1340,7 @@ int bstr_printf(char *buf, size_t size, const char *fmt, const uint32_t *bin_buf
|
||||||
|
|
||||||
case FORMAT_TYPE_PTR:
|
case FORMAT_TYPE_PTR:
|
||||||
str = pointer(fmt+1, str, end, get_arg(void *), spec);
|
str = pointer(fmt+1, str, end, get_arg(void *), spec);
|
||||||
while (isalnum(*fmt))
|
while (isalnum((unsigned char)*fmt))
|
||||||
fmt++;
|
fmt++;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -508,7 +508,7 @@ char *uuid_string(char *buf, char *end, const uint8_t *addr,
|
||||||
if (uc) {
|
if (uc) {
|
||||||
p = uuid;
|
p = uuid;
|
||||||
do {
|
do {
|
||||||
*p = toupper(*p);
|
*p = toupper((unsigned char)*p);
|
||||||
} while (*(++p));
|
} while (*(++p));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -882,7 +882,7 @@ int vsnprintf(char *buf, size_t size, const char *fmt, va_list args)
|
||||||
case FORMAT_TYPE_PTR:
|
case FORMAT_TYPE_PTR:
|
||||||
str = pointer(fmt+1, str, end, va_arg(args, void *),
|
str = pointer(fmt+1, str, end, va_arg(args, void *),
|
||||||
spec);
|
spec);
|
||||||
while (isalnum(*fmt))
|
while (isalnum((unsigned char)*fmt))
|
||||||
fmt++;
|
fmt++;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -1177,7 +1177,7 @@ do { \
|
||||||
case FORMAT_TYPE_PTR:
|
case FORMAT_TYPE_PTR:
|
||||||
save_arg(void *);
|
save_arg(void *);
|
||||||
/* skip all alphanumeric pointer suffixes */
|
/* skip all alphanumeric pointer suffixes */
|
||||||
while (isalnum(*fmt))
|
while (isalnum((unsigned char)*fmt))
|
||||||
fmt++;
|
fmt++;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -1340,7 +1340,7 @@ int bstr_printf(char *buf, size_t size, const char *fmt, const uint32_t *bin_buf
|
||||||
|
|
||||||
case FORMAT_TYPE_PTR:
|
case FORMAT_TYPE_PTR:
|
||||||
str = pointer(fmt+1, str, end, get_arg(void *), spec);
|
str = pointer(fmt+1, str, end, get_arg(void *), spec);
|
||||||
while (isalnum(*fmt))
|
while (isalnum((unsigned char)*fmt))
|
||||||
fmt++;
|
fmt++;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -508,7 +508,7 @@ char *uuid_string(char *buf, char *end, const uint8_t *addr,
|
||||||
if (uc) {
|
if (uc) {
|
||||||
p = uuid;
|
p = uuid;
|
||||||
do {
|
do {
|
||||||
*p = toupper(*p);
|
*p = toupper((unsigned char)*p);
|
||||||
} while (*(++p));
|
} while (*(++p));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -882,7 +882,7 @@ int vsnprintf(char *buf, size_t size, const char *fmt, va_list args)
|
||||||
case FORMAT_TYPE_PTR:
|
case FORMAT_TYPE_PTR:
|
||||||
str = pointer(fmt+1, str, end, va_arg(args, void *),
|
str = pointer(fmt+1, str, end, va_arg(args, void *),
|
||||||
spec);
|
spec);
|
||||||
while (isalnum(*fmt))
|
while (isalnum((unsigned char)*fmt))
|
||||||
fmt++;
|
fmt++;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -1177,7 +1177,7 @@ do { \
|
||||||
case FORMAT_TYPE_PTR:
|
case FORMAT_TYPE_PTR:
|
||||||
save_arg(void *);
|
save_arg(void *);
|
||||||
/* skip all alphanumeric pointer suffixes */
|
/* skip all alphanumeric pointer suffixes */
|
||||||
while (isalnum(*fmt))
|
while (isalnum((unsigned char)*fmt))
|
||||||
fmt++;
|
fmt++;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -1340,7 +1340,7 @@ int bstr_printf(char *buf, size_t size, const char *fmt, const uint32_t *bin_buf
|
||||||
|
|
||||||
case FORMAT_TYPE_PTR:
|
case FORMAT_TYPE_PTR:
|
||||||
str = pointer(fmt+1, str, end, get_arg(void *), spec);
|
str = pointer(fmt+1, str, end, get_arg(void *), spec);
|
||||||
while (isalnum(*fmt))
|
while (isalnum((unsigned char)*fmt))
|
||||||
fmt++;
|
fmt++;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue