mirror of
https://github.com/swaywm/sway.git
synced 2025-11-26 06:59:59 -05:00
Fix a use-after-free error in switch binding
This commit is contained in:
parent
c1c2fe04bb
commit
2bece94b9b
2 changed files with 2 additions and 2 deletions
|
|
@ -608,6 +608,7 @@ void seat_execute_command(struct sway_seat *seat, struct sway_binding *binding)
|
|||
return;
|
||||
}
|
||||
memcpy(deferred, binding, sizeof(struct sway_binding));
|
||||
deferred->command = strdup(binding->command);
|
||||
list_add(seat->deferred_bindings, deferred);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue