pkgsrc/comms/fidogate/patches/patch-av
tv 4f218f6ec4 Fix build for NetBSD 2.99.x: should cast arg to ctype macros to
"unsigned char" first.  (Oddly enough, this was being done just a few lines
prior when using the values as array indexes.)
2004-12-08 14:55:56 +00:00

22 lines
595 B
Text

$NetBSD: patch-av,v 1.1 2004/12/08 14:55:56 tv Exp $
--- src/common/areas.c.orig 2004-12-08 09:53:06.000000000 -0500
+++ src/common/areas.c
@@ -369,7 +369,7 @@ static Area *area_build(Area *pa, char *
if(areas_x_a[(unsigned char)*q])
*p = areas_x_a[(unsigned char)*q];
else
- *p = tolower(*q);
+ *p = tolower((unsigned char)*q);
*p = 0;
}
@@ -386,7 +386,7 @@ static Area *area_build(Area *pa, char *
if(areas_x_g[(unsigned char)*q])
*p = areas_x_g[(unsigned char)*q];
else
- *p = toupper(*q);
+ *p = toupper((unsigned char)*q);
*p = 0;
}