aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/for_window.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/for_window.c')
-rw-r--r--sway/commands/for_window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/for_window.c b/sway/commands/for_window.c
index ee9f4647..905e6776 100644
--- a/sway/commands/for_window.c
+++ b/sway/commands/for_window.c
@@ -14,7 +14,7 @@ struct cmd_results *cmd_for_window(int argc, char **argv) {
char *err_str = NULL;
struct criteria *criteria = criteria_parse(argv[0], &err_str);
if (!criteria) {
- error = cmd_results_new(CMD_INVALID, err_str);
+ error = cmd_results_new(CMD_INVALID, "%s", err_str);
free(err_str);
return error;
}