aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/swap.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/swap.c')
-rw-r--r--sway/commands/swap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/commands/swap.c b/sway/commands/swap.c
index b457f121..d44eb006 100644
--- a/sway/commands/swap.c
+++ b/sway/commands/swap.c
@@ -46,7 +46,7 @@ struct cmd_results *cmd_swap(int argc, char **argv) {
46 } 46 }
47 47
48 if (strcasecmp(argv[0], "container") || strcasecmp(argv[1], "with")) { 48 if (strcasecmp(argv[0], "container") || strcasecmp(argv[1], "with")) {
49 return cmd_results_new(CMD_INVALID, expected_syntax); 49 return cmd_results_new(CMD_INVALID, "%s", expected_syntax);
50 } 50 }
51 51
52 struct sway_container *current = config->handler_context.container; 52 struct sway_container *current = config->handler_context.container;
@@ -65,7 +65,7 @@ struct cmd_results *cmd_swap(int argc, char **argv) {
65 other = root_find_container(test_mark, value); 65 other = root_find_container(test_mark, value);
66 } else { 66 } else {
67 free(value); 67 free(value);
68 return cmd_results_new(CMD_INVALID, expected_syntax); 68 return cmd_results_new(CMD_INVALID, "%s", expected_syntax);
69 } 69 }
70 70
71 if (!other) { 71 if (!other) {