summaryrefslogtreecommitdiff
path: root/sway/commands/bar/tray_bind.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/bar/tray_bind.c')
-rw-r--r--sway/commands/bar/tray_bind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/bar/tray_bind.c b/sway/commands/bar/tray_bind.c
index 243834ba..3dc9bc4c 100644
--- a/sway/commands/bar/tray_bind.c
+++ b/sway/commands/bar/tray_bind.c
@@ -26,7 +26,7 @@ static struct cmd_results *tray_bind(int argc, char **argv, bool code) {
}
if (message) {
free(binding);
- error = cmd_results_new(CMD_INVALID, message);
+ error = cmd_results_new(CMD_INVALID, "%s", message);
free(message);
return error;
} else if (!binding->button) {