Merge pull request #1672 from acrisci/bug/fix-freebsd-bindmouse

bugfix: serialize con_id with %p in run_binding()
This commit is contained in:
Michael Stapelberg 2015-04-26 12:13:43 +02:00
commit 00cf467114

View File

@ -431,7 +431,7 @@ CommandResult *run_binding(Binding *bind, Con *con) {
if (con == NULL)
command = sstrdup(bind->command);
else
sasprintf(&command, "[con_id=\"%d\"] %s", con, bind->command);
sasprintf(&command, "[con_id=\"%p\"] %s", con, bind->command);
Binding *bind_cp = binding_copy(bind);
CommandResult *result = parse_command(command, NULL);