summaryrefslogtreecommitdiff
path: root/mail/autorespond/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'mail/autorespond/patches/patch-aa')
-rw-r--r--mail/autorespond/patches/patch-aa37
1 files changed, 23 insertions, 14 deletions
diff --git a/mail/autorespond/patches/patch-aa b/mail/autorespond/patches/patch-aa
index 404bbc852aa..8c1b83684bf 100644
--- a/mail/autorespond/patches/patch-aa
+++ b/mail/autorespond/patches/patch-aa
@@ -1,22 +1,31 @@
-$NetBSD: patch-aa,v 1.1 2006/01/08 17:55:31 joerg Exp $
+$NetBSD: patch-aa,v 1.2 2006/02/19 00:00:22 wiz Exp $
---- autorespond.c.orig 2006-01-08 17:51:50.000000000 +0000
+--- autorespond.c.orig 2003-09-18 20:17:57.000000000 +0000
+++ autorespond.c
-@@ -372,7 +372,7 @@ void read_headers( FILE *fp )
- }
-
-
--
-+#if !defined(__DragonFly__)
+@@ -376,7 +376,7 @@ void read_headers( FILE *fp )
/*********************************************************
** find string in string - ignore case **/
-@@ -398,7 +398,7 @@ char *strcasestr( char *_s1, char *_s2 )
- else
- return _s1 + (ptr - s1);
- }
--
-+#endif
+-char *strcasestr( char *_s1, char *_s2 )
++char *mystrcasestr( char *_s1, char *_s2 )
+ {
+ char *s1;
+ char *s2;
+@@ -419,7 +419,7 @@ char *inspect_headers( char * tag, char
+ if ( ss == (char *)NULL )
+ return act_header->content;
+- if ( strcasestr( act_header->content, ss ) != (char *)NULL )
++ if ( mystrcasestr( act_header->content, ss ) != (char *)NULL )
+ return act_header->content;
+ return (char *)NULL;
+@@ -440,7 +440,7 @@ char *get_content_boundary()
+ if ( (s = inspect_headers( "Content-Type", (char *)NULL )) == (char *)NULL)
+ return (char *)NULL;
+- if ( (r = strcasestr( s, "boundary=" )) == (char *)NULL)
++ if ( (r = mystrcasestr( s, "boundary=" )) == (char *)NULL)
+ return (char *)NULL;
+
+ *(r+strlen(r)-2) = '\0'; /* delete quote at the end */