pkgsrc/comms/fidogate/patches/patch-bb
2005-12-29 23:31:35 +00:00

13 lines
389 B
Text

$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++;