mirror of
https://github.com/curl/curl.git
synced 2026-08-25 21:33:36 +03:00
urlglob fix to prevent crashing when -o path is longer than url
This commit is contained in:
parent
160d2a30db
commit
22d8aa37e0
3 changed files with 98 additions and 50 deletions
|
|
@ -1500,7 +1500,7 @@ operate(struct Configurable *config, int argc, char *argv[])
|
|||
else {
|
||||
/* fill '#1' ... '#9' terms from URL pattern */
|
||||
char *outfile = config->outfile;
|
||||
config->outfile = match_url(config->outfile, *urls);
|
||||
config->outfile = match_url(config->outfile, urls);
|
||||
free(outfile);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue