Correcting escaping
Still not 100% sure it's good
This commit is contained in:
1 parent
e21151b5d0
commit
786de4f0f1
1 file changed
+2
-4
+2
-4
@@ -139,11 +139,9 @@ impl RustDoomLauncher {
|
||||
Ok((launch, comms)) => {
|
||||
let mut command_string = String::new();
|
||||
// Feels like a bit of a hack, but it works I think
|
||||
command_string.push_str(&Cow::from(launch).to_string());
|
||||
command_string.push_str(&format!(" '{}'", launch));
|
||||
for c in comms {
|
||||
command_string.push_str(" \'");
|
||||
command_string.push_str(c);
|
||||
command_string.push('\'')
|
||||
command_string.push_str(&format!(" '{}'", c));
|
||||
}
|
||||
command_string
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user