mirror of
https://github.com/curl/curl.git
synced 2026-04-15 00:51:42 +03:00
curl_ntlm_core: pass unsigned char to toupper
Otherwise, clang on Cygwin64 warns:
curl_ntlm_core.c:525:35: error: array subscript is of type 'char'
[-Werror,-Wchar-subscripts]
dest[2 * i] = (unsigned char)(toupper(src[i]));
^~~~~~~~~~~~~~~
/usr/include/ctype.h:152:25: note: expanded from macro 'toupper'
(void) __CTYPE_PTR[__x]; (toupper) (__x);})
^~~~
This commit is contained in:
parent
65ba92650d
commit
892c5e4cb3
1 changed files with 1 additions and 1 deletions
|
|
@ -522,7 +522,7 @@ static void ascii_uppercase_to_unicode_le(unsigned char *dest,
|
|||
{
|
||||
size_t i;
|
||||
for(i = 0; i < srclen; i++) {
|
||||
dest[2 * i] = (unsigned char)(toupper(src[i]));
|
||||
dest[2 * i] = (unsigned char)(toupper((unsigned char)src[i]));
|
||||
dest[2 * i + 1] = '\0';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue