diff options
Diffstat (limited to 'sway/commands/output/background.c')
-rw-r--r-- | sway/commands/output/background.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/output/background.c b/sway/commands/output/background.c index ddad679d..8ab52a2e 100644 --- a/sway/commands/output/background.c +++ b/sway/commands/output/background.c | |||
@@ -71,7 +71,7 @@ struct cmd_results *output_cmd_background(int argc, char **argv) { | |||
71 | return cmd_res; | 71 | return cmd_res; |
72 | } | 72 | } |
73 | free(src); | 73 | free(src); |
74 | src = strdup(p.we_wordv[0]); | 74 | src = join_args(p.we_wordv, p.we_wordc); |
75 | wordfree(&p); | 75 | wordfree(&p); |
76 | if (!src) { | 76 | if (!src) { |
77 | wlr_log(WLR_ERROR, "Failed to duplicate string"); | 77 | wlr_log(WLR_ERROR, "Failed to duplicate string"); |