summaryrefslogtreecommitdiff
path: root/mail/autorespond/patches/patch-aa
blob: 8c1b83684bf28a414537372c01a3523353a86509 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$NetBSD: patch-aa,v 1.2 2006/02/19 00:00:22 wiz Exp $

--- autorespond.c.orig	2003-09-18 20:17:57.000000000 +0000
+++ autorespond.c
@@ -376,7 +376,7 @@ void read_headers( FILE *fp )
 /*********************************************************
 ** find string in string - ignore case **/
 
-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 */