diff --git a/pandora_server/bin/pandora_exec b/pandora_server/bin/pandora_exec
index 4ccee8a1f9..d6d5da1c8c 100755
--- a/pandora_server/bin/pandora_exec
+++ b/pandora_server/bin/pandora_exec
@@ -36,7 +36,7 @@ my @opts = @ARGV;
 my $timeout = shift(@opts);
 my $command;
 foreach my $arg (@opts) {
-	$command .= $^O ne 'MSWin32' ? quotemeta ($arg) . ' ' : '"' . $command . '" ';
+	$command .= $^O ne 'MSWin32' ? quotemeta ($arg) . ' ' : '"' . $arg . '" ';
 }
 chomp ($command);
 my $output = '';