$NetBSD: patch-ab,v 1.4 2022/11/27 13:14:00 triaxx Exp $ Compliance with toupper() documentation. --- src/ntlm.c.orig 2021-07-01 16:59:57.000000000 +0000 +++ src/ntlm.c @@ -42,7 +42,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;