mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
windows: do not dinamically allocate info->lfilename.
This commit is contained in:
parent
8445279306
commit
ca402e2f81
@ -1,3 +1,9 @@
|
||||
2014-06-19 Giuseppe Scrivano <gscrivan@redhat.com>
|
||||
|
||||
* mswindows.c (fake_fork_child): Revert dinamic allocation of
|
||||
info->lfilename.
|
||||
Reported by: Gisle Vanem <gvanem@yahoo.no>.
|
||||
|
||||
2014-06-16 Darshit Shah <darnir@gmail.com>
|
||||
|
||||
* test.c: Include locale.h header for gettext.
|
||||
|
@ -123,7 +123,7 @@ struct fake_fork_info
|
||||
{
|
||||
HANDLE event;
|
||||
bool logfile_changed;
|
||||
char *lfilename;
|
||||
char lfilename[MAX_PATH + 1];
|
||||
};
|
||||
|
||||
/* Determines if we are the child and if so performs the child logic.
|
||||
@ -165,7 +165,7 @@ fake_fork_child (void)
|
||||
if (new_log_fp)
|
||||
{
|
||||
info->logfile_changed = true;
|
||||
info->lfilename = strdup (opt.lfilename);
|
||||
snprintf (info->filename, sizeof (info->lfilename), "%s", opt.lfilename);
|
||||
fclose (new_log_fp);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user