From 5caa5eb0cb1b356fcbdef586ea700c0b8df34ce1 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Thu, 22 Sep 2016 18:12:36 +0200 Subject: [PATCH] use standard function --- liblangtag/lt-xml.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/liblangtag/lt-xml.c b/liblangtag/lt-xml.c index 170d8bb..abf2254 100644 --- a/liblangtag/lt-xml.c +++ b/liblangtag/lt-xml.c @@ -16,9 +16,6 @@ #include #include -#ifdef HAVE_STRINGS_H -#include -#endif #include #include #include @@ -409,7 +406,7 @@ lt_xml_get_cldr(lt_xml_t *xml, xmlDocPtr *d = &pref[idx - 1], doc = NULL; do { - p = index(pp, ':'); + p = strchr(pp, ':'); if (p) s = lt_strndup(pp, p - pp); else -- 2.7.4