Lines Matching refs:len
107 size_t len; in sanitize_file_name() local
134 len = strlen(file_name); in sanitize_file_name()
135 if(len > max_sanitized_len) in sanitize_file_name()
170 if(!(flags & SANITIZE_ALLOW_PATH) && len) { in sanitize_file_name()
173 p = &target[len]; in sanitize_file_name()
183 len = clip - target; in sanitize_file_name()
193 len = strlen(target); in sanitize_file_name()
195 if(len > max_sanitized_len) { in sanitize_file_name()
207 len = strlen(target); in sanitize_file_name()
209 if(len > max_sanitized_len) { in sanitize_file_name()
247 size_t len; in truncate_dryrun() local
252 len = strlen(path); in truncate_dryrun()
254 if(truncate_pos > len) in truncate_dryrun()
257 if(!len || !truncate_pos) in truncate_dryrun()
306 size_t len = sizeof(illegal_chars_dos) - 1; in msdosify() local
322 len -= (illegal_chars_w95 - illegal_chars_dos); in msdosify()
333 if(memchr(illegal_aliens, *s, len)) { in msdosify()
450 size_t len; in rename_if_reserved_dos() local
456 len = strlen(file_name); in rename_if_reserved_dos()
469 if(len > PATH_MAX-1) in rename_if_reserved_dos()
472 memcpy(fname, file_name, len); in rename_if_reserved_dos()
473 fname[len] = '\0'; in rename_if_reserved_dos()