diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/main.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/firejail/main.c b/src/firejail/main.c index 366b41f88..91f39ed71 100644 --- a/src/firejail/main.c +++ b/src/firejail/main.c | |||
@@ -2022,12 +2022,7 @@ int main(int argc, char **argv) { | |||
2022 | char *ptr1 = cfg.command_line; | 2022 | char *ptr1 = cfg.command_line; |
2023 | char *ptr2 = cfg.window_title; | 2023 | char *ptr2 = cfg.window_title; |
2024 | for (i = 0; i < argcnt; i++) { | 2024 | for (i = 0; i < argcnt; i++) { |
2025 | if (arg_shell_none){ | 2025 | sprintf(ptr1, "\'%s\' ", argv[i + prog_index]); |
2026 | sprintf(ptr1, "%s ", argv[i + prog_index]); | ||
2027 | } | ||
2028 | else { | ||
2029 | sprintf(ptr1, "\'%s\' ", argv[i + prog_index]); | ||
2030 | } | ||
2031 | sprintf(ptr2, "%s ", argv[i + prog_index]); | 2026 | sprintf(ptr2, "%s ", argv[i + prog_index]); |
2032 | 2027 | ||
2033 | ptr1 += strlen(ptr1); | 2028 | ptr1 += strlen(ptr1); |