--- asterisk-1.4.24.1/funcs/func_cut.c 2008-12-11 23:46:29.000000000 +0200 +++ asterisk-1.4.24.1.new/funcs/func_cut.c 2009-08-03 13:35:50.000000000 +0300 @@ -89,7 +89,7 @@ /* Parse each into a struct */ count2 = 0; while ((ptrkey = strsep(&strings, "|"))) { - ptrvalue = index(ptrkey, ':'); + ptrvalue = strchr(ptrkey, ':'); if (!ptrvalue) { count--; continue; @@ -191,7 +191,7 @@ /* Get to start, if any */ if (num1 > 0) { while (tmp2 != (char *)NULL + 1 && curfieldnum < num1) { - tmp2 = index(tmp2, d) + 1; + tmp2 = strchr(tmp2, d) + 1; curfieldnum++; } } --- asterisk-1.4.24/apps/app_playback.c 2008-04-19 16:57:17.000000000 +0300 +++ asterisk-1.4.23.1/apps/app_playback.c 2009-02-24 16:29:08.000000000 +0200 @@ -207,13 +207,13 @@ pbx_substitute_variables_varshead(&head, x, fn, sizeof(fn)); /* locate prefix and data, if any */ - fmt = index(fn, ':'); + fmt = strchr(fn, ':'); if (!fmt || fmt == fn) { /* regular filename */ ret = s_streamwait3(a, fn); continue; } fmt++; - data = index(fmt, ':'); /* colon before data */ + data = strchr(fmt, ':'); /* colon before data */ if (!data || data == fmt) { /* simple prefix-fmt */ ret = do_say(a, fn, options, depth); continue; @@ -226,14 +226,14 @@ if (*p == '\'') {/* file name - we trim them */ char *y; strcpy(fn2, ast_skip_blanks(p+1)); /* make a full copy */ - y = index(fn2, '\''); + y = strchr(fn2, '\''); if (!y) { p = data; /* invalid. prepare to end */ break; } *y = '\0'; ast_trim_blanks(fn2); - p = index(p+1, '\''); + p = strchr(p+1, '\''); ret = s_streamwait3(a, fn2); } else { int l = fmt-fn;