diff options
author | Di Ma <focus64@gmail.com> | 2020-03-22 16:18:29 -0700 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2020-04-14 19:41:30 -0400 |
commit | 2bece94b9bf2cf099d2f166808385ce8a7940476 (patch) | |
tree | ca2e752f8ec4d1e6a5943df659edcc64a96fd98a /sway/commands | |
parent | c1c2fe04bbdab8380db62cd3b481356abea2facd (diff) |
Fix a use-after-free error in switch binding
Diffstat (limited to 'sway/commands')
-rw-r--r-- | sway/commands/bind.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/commands/bind.c b/sway/commands/bind.c index 4e49982a..de2e7bd4 100644 --- a/sway/commands/bind.c +++ b/sway/commands/bind.c @@ -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; } |