char *t_pc = m_strdup(t);
char *tmp;
- tmp = index(fs_pc, '/');
+ tmp = strchr(fs_pc, '/');
if (tmp != NULL) {
*tmp = '\0';
}
- tmp = index(t_pc, '/');
+ tmp = strchr(t_pc, '/');
if (tmp != NULL) {
*tmp = '\0';
}
fs_pc, t_pc);
if (fnmatch(fs_pc, t_pc, FNM_PATHNAME) == 0 &&
- index(t, '/') == NULL) {
+ strchr(t, '/') == NULL) {
debug(dbg_eachfile, "do_filter reincluding %s",
ti->Name);
remove = 0;
free (fs_pc);
free (t_pc);
- if (index(t, '/') != NULL) {
+ if (strchr(t, '/') != NULL) {
fs++;
- t = index(t, '/');
+ t = strchr(t, '/');
debug(dbg_eachfile, "do_filter 2(%s, %s)",
fs, t);