Windows: fix bug in process arguments buffer size computation
This commit is contained in:
parent
dbaddc4423
commit
ec143961d1
@ -424,7 +424,7 @@ static wchar_t* make_program_args(char** args) {
|
||||
}
|
||||
|
||||
/* Adjust for potential quotes. */
|
||||
size += arg_count * 2;
|
||||
size *= 2;
|
||||
|
||||
/* Arguments are separated with a space. */
|
||||
if (arg_count > 0) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user