blob: c2f22abdf285e2c3d85629c5f462bb68e88b279e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$NetBSD: patch-ab,v 1.2 2015/04/06 02:26:53 rodent Exp $
--- src/ntlm.c.orig 2015-02-17 13:07:21.000000000 +0000
+++ src/ntlm.c
@@ -43,7 +43,7 @@ int text2unicode(const char * text, char
buflen = ((buflen>>1)<<1);
if(!text || !buflen) return 0;
do {
- buf[count++] = toupper(*text++);
+ buf[count++] = toupper((unsigned char)*text++);
buf[count++] = '\0';
} while (*text && count < buflen);
return count;
|