Lines Matching refs:copy
324 char *copy; in parse_filename() local
330 copy = malloc(len + 1); in parse_filename()
331 if(!copy) in parse_filename()
333 memcpy(copy, ptr, len); in parse_filename()
334 copy[len] = '\0'; in parse_filename()
336 p = copy; in parse_filename()
355 Curl_safefree(copy); in parse_filename()
367 Curl_safefree(copy); in parse_filename()
381 if(copy != p) in parse_filename()
382 memmove(copy, p, strlen(p) + 1); in parse_filename()
387 SANITIZEcode sc = sanitize_file_name(&sanitized, copy, 0); in parse_filename()
388 Curl_safefree(copy); in parse_filename()
391 copy = sanitized; in parse_filename()
404 msnprintf(buffer, sizeof(buffer), "%s/%s", tdir, copy); in parse_filename()
405 Curl_safefree(copy); in parse_filename()
406 copy = strdup(buffer); /* clone the buffer, we do not use the libcurl in parse_filename()
415 return copy; in parse_filename()