pkgsrc/mail/autorespond/patches/patch-aa
wiz cb24d5a636 Just rename strcasestr to mystrcasestr, to avoid
conflicts with builtin strcasestr on DF and NetBSD.
2006-02-19 00:00:22 +00:00

31 lines
1.1 KiB
Text

$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 */