isalpha((unsigned char)*s) instead of isalpha((int)*s). Also replaced WRKSRC with BUILD_DIRS, which is more appropriate. Approved by jlam.
13 lines
391 B
Text
13 lines
391 B
Text
$NetBSD: patch-aj,v 1.2 2005/04/13 16:45:46 rillig Exp $
|
|
|
|
--- cmdgen.c.orig 2005-04-06 23:30:02.000000000 +0200
|
|
+++ cmdgen.c 2005-04-06 23:30:15.000000000 +0200
|
|
@@ -114,7 +114,7 @@
|
|
void showversion(void)
|
|
{
|
|
char *verstr = dupstr(ver);
|
|
- verstr[0] = tolower(verstr[0]);
|
|
+ verstr[0] = tolower((unsigned char)verstr[0]);
|
|
printf("PuTTYgen %s\n", verstr);
|
|
sfree(verstr);
|
|
}
|