]> granicus.if.org Git - curl/commit
curl_ntlm_core: pass unsigned char to toupper
authorMarcel Raad <raad@teamviewer.com>
Sun, 4 Jun 2017 14:46:03 +0000 (16:46 +0200)
committerMarcel Raad <raad@teamviewer.com>
Sun, 4 Jun 2017 14:46:03 +0000 (16:46 +0200)
commit892c5e4cb3af997c232e323b8831af6e8637a84d
tree9ce6b0328cf27565f64f8725c8e4e3601f089982
parent65ba92650df941d9568852fd6e8fb07cdbd67638
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);})
                        ^~~~
lib/curl_ntlm_core.c