]> granicus.if.org Git - curl/commitdiff
curl_ntlm_core: use Curl_raw_toupper instead of toupper
authorMarcel Raad <raad@teamviewer.com>
Sun, 4 Jun 2017 22:27:29 +0000 (00:27 +0200)
committerMarcel Raad <raad@teamviewer.com>
Sun, 4 Jun 2017 22:27:29 +0000 (00:27 +0200)
This was the only remaining use of toupper in the entire source code.

Suggested-by: Daniel Stenberg
lib/curl_ntlm_core.c

index 25f2a3ad408a6ca0cb278f3aee0b2f004c474c38..aea545295e499b3ff964738b10cf2cbf7116c3e7 100644 (file)
@@ -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((unsigned char)src[i]));
+    dest[2 * i] = (unsigned char)(Curl_raw_toupper(src[i]));
     dest[2 * i + 1] = '\0';
   }
 }