summaryrefslogtreecommitdiff
path: root/comms/fidogate/patches/patch-av
blob: 2f24b26aed0dc63ecce7e6da99b279a71dd680a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$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;
     }