Lines Matching refs:target
106 char *p, *target; in sanitize_file_name() local
138 target = strdup(file_name); in sanitize_file_name()
139 if(!target) in sanitize_file_name()
143 if((flags & SANITIZE_ALLOW_PATH) && !strncmp(target, "\\\\?\\", 4)) in sanitize_file_name()
145 p = target + 4; in sanitize_file_name()
148 p = target; in sanitize_file_name()
173 p = &target[len]; in sanitize_file_name()
179 } while(p != target); in sanitize_file_name()
183 len = clip - target; in sanitize_file_name()
188 sc = msdosify(&p, target, flags); in sanitize_file_name()
189 free(target); in sanitize_file_name()
192 target = p; in sanitize_file_name()
193 len = strlen(target); in sanitize_file_name()
196 free(target); in sanitize_file_name()
202 sc = rename_if_reserved_dos(&p, target, flags); in sanitize_file_name()
203 free(target); in sanitize_file_name()
206 target = p; in sanitize_file_name()
207 len = strlen(target); in sanitize_file_name()
210 free(target); in sanitize_file_name()
215 *sanitized = target; in sanitize_file_name()