summaryrefslogtreecommitdiff
path: root/comms/fidogate/patches/patch-bb
blob: 778a82c8d26a4e394f0edb5d69ed3b1243be8a45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-bb,v 1.1 2005/12/29 23:31:36 joerg Exp $

--- src/charset/charsetc.c.orig	2005-12-30 00:21:07.000000000 +0100
+++ src/charset/charsetc.c
@@ -79,7 +79,7 @@ int charset_parse_c(char *s)
 	    s++;
 	    while(is_xdigit(s[0]) && n<2)
 	    {
-		s[0] = toupper(s[0]);
+		s[0] = toupper((unsigned char)s[0]);
 		val = val * 16 + s[0] - (s[0]>'9' ? 'A'-10 : '0');
 		s++;
 		n++;