pkgsrc/security/putty/patches/patch-ag
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
374 B
Text

$NetBSD: patch-ag,v 1.2 2005/04/13 16:45:46 rillig Exp $
--- terminal.c.orig 2005-04-06 23:15:37.000000000 +0200
+++ terminal.c 2005-04-06 23:15:48.000000000 +0200
@@ -5818,7 +5818,7 @@
if (modifiers & PKM_CONTROL)
c &= 0x1f;
else if (modifiers & PKM_SHIFT)
- c = toupper(c);
+ c = toupper((unsigned char)c);
}
*p++ = c;
goto done;