summaryrefslogtreecommitdiff
path: root/comms/fidogate/patches
diff options
context:
space:
mode:
authorrillig <rillig>2005-12-20 10:19:09 +0000
committerrillig <rillig>2005-12-20 10:19:09 +0000
commitcdc26d3b501c0e3fa0489936aaa98d2ee84b1797 (patch)
tree79370620daf3fd819f5a4648dd50468d4573e98d /comms/fidogate/patches
parentd347782148e407a9ecf7f2b7e2489d1d30643f52 (diff)
downloadpkgsrc-cdc26d3b501c0e3fa0489936aaa98d2ee84b1797.tar.gz
Added patch-ax, which fixes ctype issues. Bumped PKGREVISION because the
generated code changes.
Diffstat (limited to 'comms/fidogate/patches')
-rw-r--r--comms/fidogate/patches/patch-ax35
1 files changed, 35 insertions, 0 deletions
diff --git a/comms/fidogate/patches/patch-ax b/comms/fidogate/patches/patch-ax
new file mode 100644
index 00000000000..b31749885f0
--- /dev/null
+++ b/comms/fidogate/patches/patch-ax
@@ -0,0 +1,35 @@
+$NetBSD: patch-ax,v 1.1 2005/12/20 10:19:09 rillig Exp $
+
+Keywords: ctype
+
+--- src/common/mime.c.orig Sun Aug 22 22:19:11 2004
++++ src/common/mime.c Tue Dec 20 11:12:02 2005
+@@ -32,12 +32,13 @@
+
+ #include "fidogate.h"
+
++#define uchar(c) ((unsigned char) (c))
+
+-static int is_qpx (int);
++static int is_qpx (unsigned char);
+ static int x2toi (char *);
+
+
+-static int is_qpx(int c)
++static int is_qpx(unsigned char c)
+ {
+ return isxdigit(c) /**is_digit(c) || (c>='A' && c<='F')**/ ;
+ }
+@@ -48,10 +49,10 @@ static int x2toi(char *s)
+ int val = 0;
+ int n;
+
+- n = toupper(*s) - (isalpha(*s) ? 'A'-10 : '0');
++ n = toupper(uchar(*s)) - (isalpha(uchar(*s)) ? 'A'-10 : '0');
+ val = val*16 + n;
+ s++;
+- n = toupper(*s) - (isalpha(*s) ? 'A'-10 : '0');
++ n = toupper(uchar(*s)) - (isalpha(uchar(*s)) ? 'A'-10 : '0');
+ val = val*16 + n;
+
+ return val;