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 <yoi_no_myoujou@yahoo.co.jp>
This commit is contained in:
Tim Rühsen 2014-12-12 15:45:32 +01:00
parent 0a4826f4a1
commit cbaabe78e8
2 changed files with 3 additions and 1 deletions

View File

@ -32,6 +32,7 @@ base32
bind
c-ctype
c-strcase
c-strcasestr
clock-time
close
connect

View File

@ -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;