From cbaabe78e820102f95fcd5f4d6755a4edaf22717 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20R=C3=BChsen?= Date: Fri, 12 Dec 2014 15:45:32 +0100 Subject: [PATCH] src/iri.c: Use c_strcasestr instead of strcasestr This also fixes a problem with strcasestr not being in the boostrap.conf module list. Reported-by: Kiyoshi KANAZAWA --- bootstrap.conf | 1 + src/iri.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bootstrap.conf b/bootstrap.conf index 6befd747..55a6e3ce 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -32,6 +32,7 @@ base32 bind c-ctype c-strcase +c-strcasestr clock-time close connect diff --git a/src/iri.c b/src/iri.c index 0686f301..f46ee078 100644 --- a/src/iri.c +++ b/src/iri.c @@ -40,6 +40,7 @@ as that of the covered work. */ #include "utils.h" #include "url.h" #include "c-strcase.h" +#include "c-strcasestr.h" /* RFC3987 section 3.1 mandates STD3 ASCII RULES */ #define IDNA_FLAGS IDNA_USE_STD3_ASCII_RULES @@ -56,7 +57,7 @@ parse_charset (char *str) if (!str || !*str) return NULL; - str = strcasestr (str, "charset="); + str = c_strcasestr (str, "charset="); if (!str) return NULL;