From e5eba308ab38aed37373032f2066c640e521b8ba Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Fri, 19 Jan 2007 03:08:08 +0000 Subject: [PATCH] use strchr instead of index as recommended by the linux man pages for portability. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3994 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/xml_int/mod_xml_curl/mod_xml_curl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c b/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c index a990d78d5b..dbed6c8f4e 100644 --- a/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c +++ b/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c @@ -77,7 +77,7 @@ static switch_xml_t xml_url_fetch(char *section, tag_name ? tag_name : "", key_name ? key_name : "", key_value ? key_value : "", - params ? index(params,'=') ? "&" : "¶ms=" : "", params ? params : ""))) { + params ? strchr(params,'=') ? "&" : "¶ms=" : "", params ? params : ""))) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Memory Error!\n"); return NULL;