pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/comms/fidogate Added patch-ax, which fixes ctype issue...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/638086eee1b2
branches:  trunk
changeset: 504740:638086eee1b2
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Tue Dec 20 10:19:09 2005 +0000

description:
Added patch-ax, which fixes ctype issues. Bumped PKGREVISION because the
generated code changes.

diffstat:

 comms/fidogate/Makefile         |   3 ++-
 comms/fidogate/distinfo         |   3 ++-
 comms/fidogate/patches/patch-ax |  35 +++++++++++++++++++++++++++++++++++
 3 files changed, 39 insertions(+), 2 deletions(-)

diffs (66 lines):

diff -r 0606117a2874 -r 638086eee1b2 comms/fidogate/Makefile
--- a/comms/fidogate/Makefile   Mon Dec 19 23:06:47 2005 +0000
+++ b/comms/fidogate/Makefile   Tue Dec 20 10:19:09 2005 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.43 2005/12/05 20:49:54 rillig Exp $
+# $NetBSD: Makefile,v 1.44 2005/12/20 10:19:09 rillig Exp $
 #
 
 DISTNAME=      fidogate-4.4.10
+PKGREVISION=   1
 CATEGORIES=    comms
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=fidogate/}
 
diff -r 0606117a2874 -r 638086eee1b2 comms/fidogate/distinfo
--- a/comms/fidogate/distinfo   Mon Dec 19 23:06:47 2005 +0000
+++ b/comms/fidogate/distinfo   Tue Dec 20 10:19:09 2005 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.11 2005/12/19 15:10:18 joerg Exp $
+$NetBSD: distinfo,v 1.12 2005/12/20 10:19:09 rillig Exp $
 
 SHA1 (fidogate-4.4.10.tar.gz) = 531305ac82963d5bd6398d2e8e350676bbc9c5eb
 RMD160 (fidogate-4.4.10.tar.gz) = 09b8dfa7304089ff27c7c39c1b6004aef00edadf
@@ -25,3 +25,4 @@
 SHA1 (patch-at) = 5fa13046a1557b84f2b75b55001435ba8fe09ede
 SHA1 (patch-av) = dec5e163dcba702d929f4242083ac942abbf2160
 SHA1 (patch-aw) = ca20e868bade0466a1a3c5e590993f6cbe6d6143
+SHA1 (patch-ax) = e619113f5d8d9c703bf847bfca0e0585608d15b9
diff -r 0606117a2874 -r 638086eee1b2 comms/fidogate/patches/patch-ax
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/fidogate/patches/patch-ax   Tue Dec 20 10:19:09 2005 +0000
@@ -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;



Home | Main Index | Thread Index | Old Index