urlglob fix to prevent crashing when -o path is longer than url

This commit is contained in:
Daniel Stenberg 2000-12-06 10:10:31 +00:00
parent 160d2a30db
commit 22d8aa37e0
3 changed files with 98 additions and 50 deletions

View file

@ -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);
}