diff --git a/win32utils/Configure b/win32utils/Configure index daad52f047..9fcf6e512d 100644 --- a/win32utils/Configure +++ b/win32utils/Configure @@ -640,8 +640,9 @@ getversion(); sub appargs { my $arg = $_[0]; - # escape backslashes, spaces and double quotes - $arg =~ s/([\\ "])/\\$1/g; + # escape backslashes and double quotes + $arg =~ s/([\\"])/\\$1/g; + $arg =~ s/([\s])/\\\\$1/g; if (defined($configdefh{"CONFIGARGS"})) { $configdefh{"CONFIGARGS"} .= " " . $arg; } else {