4f218f6ec4
"unsigned char" first. (Oddly enough, this was being done just a few lines prior when using the values as array indexes.)
22 lines
595 B
Text
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;
|
|
}
|
|
|