gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 222/254: curl_ntlm_core: pass unsigned char to toup


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 222/254: curl_ntlm_core: pass unsigned char to toupper
Date: Sat, 17 Jun 2017 16:54:14 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to annotated tag gnurl-7.54.1
in repository gnurl.

commit 892c5e4cb3af997c232e323b8831af6e8637a84d
Author: Marcel Raad <address@hidden>
AuthorDate: Sun Jun 4 16:46:03 2017 +0200

    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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/curl_ntlm_core.c b/lib/curl_ntlm_core.c
index b15215b2f..25f2a3ad4 100644
--- a/lib/curl_ntlm_core.c
+++ b/lib/curl_ntlm_core.c
@@ -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';
   }
 }

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]