aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/assign.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/assign.c')
-rw-r--r--sway/commands/assign.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/assign.c b/sway/commands/assign.c
index 976bc3cc..f7d911f7 100644
--- a/sway/commands/assign.c
+++ b/sway/commands/assign.c
@@ -17,7 +17,7 @@ struct cmd_results *cmd_assign(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;
}