pkgsrc/security/putty/patches/patch-ae
rillig 685962fb63 Fixed the patched to use the <ctype.h> functions correctly, that is:
isalpha((unsigned char)*s) instead of isalpha((int)*s). Also replaced
WRKSRC with BUILD_DIRS, which is more appropriate. Approved by jlam.
2005-04-13 16:45:46 +00:00

13 lines
414 B
Text

$NetBSD: patch-ae,v 1.2 2005/04/13 16:45:46 rillig Exp $
--- charset/localenc.c.orig Tue Apr 5 21:37:48 2005
+++ charset/localenc.c Tue Apr 12 10:29:00 2005
@@ -101,7 +101,7 @@ int charset_from_localenc(const char *na
p = name;
q = localencs[i].name;
while (*p || *q) {
- if (tolower(*p) != tolower(*q))
+ if (tolower((unsigned char)*p) != tolower((unsigned char)*q))
break;
p++; q++;
}